Ext.define not available? | Leo Dashevskiy | 2012-09-11 11:07 | |||||||||||||||||||||||||||||||||
Status: Closed | |||||||||||||||||||||||||||||||||||
Hello! Within my module I have the "begin.html" file with the following: <script type='text/javascript'> LABKEY.requiresExt4ClientAPI(); </script> ... <script type='text/javascript'> LABKEY.requiresScript( [ ... 'FlowGraph.js']) </script> and then the "FlowGraph.js" file with the following: Ext.define('LABKEY.ext.FlowGraph', { extend : 'Ext.panel.Panel', constructor : function(config) { ... this.callParent([config]); } }); I get the error: Uncaught TypeError: Object #<Object> has no method 'define' FlowGraph.js:9 (anonymous function) and in the console Ext in actuality does not have the 'define' method (though Ext4 does), but it is being used elsewhere all over the place -- what am I not doing right and how to fix that? Thanks. -Leo |
|||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||