javascript - The web application do not function properly after using the sencha build command -


i using asp.net mvc4 back-end , extjs 4.2.1 front-end. after finish developing, use sencha app build of sencha cmd pack front-end code production. working ok, when press 1 specific button in web app, there error indicating "e.redraw() not function". in development environment, works properly. so, wonder why error occur because did not change section of code.

i did not obey scaffolding of sencha cmd(sencha -sdk pathtosdk generate app test pathtoapp, add models, views or controller using specific command) below workflow:

  1. when develop, follow best practice of extjs's official documentation.
  2. using sencha -sdk pathtosdk generate app test pathtoapp generate template app. , create every view , controller using sencha generate controller testcontroller , sencha generate view testview command. copy content of previous file newly created files. did not models' file, because model file has created sencha generate model id:int, name me not practical because have 30 more fields in 1 of model file. copy files located in app/model directly template app's model directory.
  3. using sencha app build build process. , copy app.js , resources directory in production directory previous path, , add link , script tag in index.cshtml.

above workflow, have no idea why can not make this.

you can debug build app , got root cause of issue.

run command > sencha app build testing. build file create in build/testing folder.

you can use app.js file here , debug.

yeah happens config not works after build.

try e.config.redraw().


Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

c# - two queries in same method -