2014-03-27 20 views
1

我有一个Sencha Touch 2应用程序(非MVC),它工作正常,除了一个JS文件。在那里我定义了一家商店。 在app.json我包括sencha-touch.js和这个文件也。这是正确的建设,但是当我打开网页是说在Sencha CMD中包含Ext后的JS文件

Object has no method 'create' 

我app.json:

{ 
    "path": "touch/sencha-touch.js", 
    "x-bootstrap": true 
}, 
{ 
    "path": "res/mystore.js" 
}, 
{ 
    "path": "bootstrap.js", 
    "x-bootstrap": true 
}, 
{ 
    "path": "app.js", 
    "bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */ 
    "update": "delta" 
} 

我试过很多东西,但似乎没有奏效,更改顺序, x-bootstrap为mystore.js为true,但没有任何结果。任何想法?

在此先感谢!

回答

0

这似乎是问题是顺序。我改变后,像这样:

{ 
    "path": "touch/sencha-touch.js", 
    "x-bootstrap": true 
}, 
{ 
    "path": "bootstrap.js", 
    "x-bootstrap": true 
}, 
{ 
    "path": "app.js", 
    "bundle": true, /* Indicates that all class dependencies are concatenated into this file when build */ 
    "update": "delta" 
}, 
{ 
    "path": "res/mystore.js" 
} 

它的工作完美。