Results 1 to 2 of 2

Thread: App.js seems to be generating differently then a previous project

  1. #1

    Default App.js seems to be generating differently then a previous project

    I have a problem that seems to be causing the app not to work when compiled in either 'Production' or 'Package'. It works fine when using 'Testing'. When I try to test out the new build it fails trying to access a JsonP request with the following error:

    Code:
    Uncaught TypeError: Cannot read property 'JsonP' of undefined
    I've had a look at the compiled app.js code and it seems different from another project I was working on in Sencha Arhictect. The old project which compiled fine started with some code like this:

    Code:
    function _a5c19be9278d277f30eee235f646084f4273b475(){};(function(){var global=this,objectPrototype=Object.prototype
    However in my new project this part of the code starts much further down the script and has a whole bunch of other commands and variables being registered. I've included the additional code up to the point where the old code then started:

    Code:
    function _2ecfb5456916e3c0cd86f1efe1aceed2876c4be7(){};var MyApp=MyApp||{};if(!MyApp.controller){MyApp.controller={}}if(!MyApp.model){MyApp.model={}}if(!MyApp.override){MyApp.override={}}if(!MyApp.override.data){MyApp.override.data={}}if(!MyApp.override.data.proxy){MyApp.override.data.proxy={}}if(!MyApp.store){MyApp.store={}}if(!MyApp.utils){MyApp.utils={}}if(!MyApp.view){MyApp.view={}}var Ext=Ext||{};if(!Ext.Carousel){Ext.Carousel={}}if(!Ext.app){Ext.app={}}if(!Ext.behavior){Ext.behavior={}}if(!Ext.carousel){Ext.carousel={}}if(!Ext.data){Ext.data={}}if(!Ext.data.association){Ext.data.association={}}if(!Ext.data.identifier){Ext.data.identifier={}}if(!Ext.data.proxy){Ext.data.proxy={}}if(!Ext.data.reader){Ext.data.reader={}}if(!Ext.data.writer){Ext.data.writer={}}if(!Ext.dataview){Ext.dataview={}}if(!Ext.dataview.component){Ext.dataview.component={}}if(!Ext.dataview.element){Ext.dataview.element={}}if(!Ext.direct){Ext.direct={}}if(!Ext.dom){Ext.dom={}}if(!Ext.env){Ext.env={}}if(!Ext.event){Ext.event={}}if(!Ext.event.publisher){Ext.event.publisher={}}if(!Ext.event.recognizer){Ext.event.recognizer={}}if(!Ext.field){Ext.field={}}if(!Ext.form){Ext.form={}}if(!Ext.fx){Ext.fx={}}if(!Ext.fx.animation){Ext.fx.animation={}}if(!Ext.fx.easing){Ext.fx.easing={}}if(!Ext.fx.layout){Ext.fx.layout={}}if(!Ext.fx.layout.card){Ext.fx.layout.card={}}if(!Ext.fx.runner){Ext.fx.runner={}}if(!Ext.layout){Ext.layout={}}if(!Ext.layout.wrapper){Ext.layout.wrapper={}}if(!Ext.lib){Ext.lib={}}if(!Ext.mixin){Ext.mixin={}}if(!Ext.navigation){Ext.navigation={}}if(!Ext.plugin){Ext.plugin={}}if(!Ext.proxy){Ext.proxy={}}if(!Ext.scroll){Ext.scroll={}}if(!Ext.scroll.indicator){Ext.scroll.indicator={}}if(!Ext.util){Ext.util={}}if(!Ext.util.paintmonitor){Ext.util.paintmonitor={}}if(!Ext.util.sizemonitor){Ext.util.sizemonitor={}}if(!Ext.util.translatable){Ext.util.translatable={}}if(!Ext.ux){Ext.ux={}}if(!Ext.viewport){Ext.viewport={}}(function(h){var j,l=["constructor","toString","valueOf","toLocaleString"],i={},p={},b=0,g,c,o,f,k,n,a=function(){var r,q;c=Ext.Base;o=Ext.ClassManager;for(r=l.length;r-->0;){q=(1<<r);p[i[q]=l[r]]=q}for(r in p){b|=p[r]}b=~b;Function.prototype.$isFunction=1;f=Ext.Class.getPreprocessor("config").fn;k=Ext.Class.getPreprocessor("cachedConfig")&&Ext.Class.getPreprocessor("cachedConfig").fn;j=c.$staticMembers;if(!j){j=[];for(g in c){if(c.hasOwnProperty(g)){j.push(g)}}}h.derive=d;return d.apply(this,arguments)},e=function(z,v,y){var r=y.enumerableMembers,w=z.prototype,u,x,s,q;if(!v){return}if(n){z.addMembers(v)}else{for(u in v){q=v[u];if(q&&q.$isFunction&&!q.$isClass&&q!==Ext.emptyFn&&q!==Ext.identityFn){if(u in w){q.$previous=w[u]}w[u]=x=q;x.$owner=z;x.$name=u}else{w[u]=q}}for(s=1;r;s<<=1){if(r&s){r&=~s;u=i[s];w[u]=x=v[u];x.$owner=z;x.$name=u}}}},m=function(v){var q=function u(){return v.apply(this,arguments)||null},s,r;q.prototype=Ext.Object.chain(v.prototype);for(s=j.length;s-->0;){r=j[s];q[r]=c[r]}return q},d=function(w,z,U,q,y,I,x,R,u,K,D){var r=function C(){return this.constructor.apply(this,arguments)||null},T=r,s={enumerableMembers:q&b,onCreated:D,onBeforeCreated:e,aliases:R},G=U.alternateClassName||[],P=Ext.global,L,O,Q,F,N,X,W,v,M,B,S,J,E,V,H=o.alternateToName||o.maps.alternateToName,A=o.nameToAlternates||o.maps.nameToAlternates;if(n===undefined){n=!!(o&&o.addAlias)}for(Q=j.length;Q-->0;){W=j[Q];r[W]=c[W]}if(U.$isFunction){U=U(r)}s.data=U;B=U.statics;delete U.statics;U.$className=w;if("$className" in U){r.$className=U.$className}r.extend(z);M=r.prototype;r.xtype=U.xtype=y[0];if(y){M.xtypes=y}M.xtypesChain=I;M.xtypesMap=x;U.alias=R;T.triggerExtended(r,U,s);if(U.onClassExtended){r.onExtended(U.onClassExtended,r);delete U.onClassExtended}if(B){if(n){r.addStatics(B)}else{for(S in B){if(B.hasOwnProperty(S)){V=B[S];if(V&&V.$isFunction&&!V.$isClass&&V!==Ext.emptyFn&&V!==Ext.identityFn){r[S]=E=V;E.$owner=r;E.$name=S}r[S]=V}}}}if(U.inheritableStatics){r.addInheritableStatics(U.inheritableStatics);delete U.inheritableStatics}if(M.onClassExtended){T.onExtended(M.onClassExtended,T);delete M.onClassExtended}if(U.config){f.call(Ext.Class,r,U)}if(U.cachedConfig&&k){k.call(Ext.Class,r,U)}s.onBeforeCreated(r,s.data,s);for(Q=0,N=u&&u.length;Q<N;++Q){r.mixin.apply(r,u[Q])}for(Q=0,N=R.length;Q<N;Q++){L=R[Q];o.setAlias?o.setAlias(r,L):o.addAlias(r,L)}if(U.singleton){T=new r()}if(!(G instanceof Array)){G=[G]}for(Q=0,F=G.length;Q<F;Q++){O=G[Q];o.classes[O]=T;if(n){o.addAlternate(r,O)}else{J=o.getName(T);if(J&&J!==O){H[O]=J;G=H[J]||(H[J]=[]);G.push(O)}}}for(Q=0,N=K.length;Q<N;Q+=2){X=K[Q];if(!X){X=P}X[K[Q+1]]=T}o.classes[w]=T;if(!n){J=o.getName(T);if(J&&J!==w){A[w]=J;G=A[J]||(A[J]=[]);G.push(w)}}delete M.alternateClassName;if(s.onCreated){s.onCreated.call(T,T)}if(w){o.triggerCreated(w)}return T};h.derive=a}(Ext.cmd={}));(function(){var global=this,objectPrototype=Object.prototype
    Any idea what's causing this additional bunch of code to be generated? I can't seem to get my app to function like it should in anything but the 'Testing' version.

  2. #2
    Sencha Premium User la_spi_man's Avatar
    Join Date
    Jun 2008
    Location
    Martinique
    Posts
    39

    Default Same here

    Hi there,

    I just want test a basic example in sencha menu (create), When build the app, the index.html is unlike in the past.
    Some code javascript that describe up in the index.html.

    It s like a big bug !!! or not ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •