-
9 Feb 2013 1:55 AM #21Sencha - Community Support Team
- Join Date
- Nov 2007
- Location
- Helsingborg, Sweden
- Posts
- 2,483
- Vote Rating
- 56
Premium support might be able to help yes, not sure but try it

-
14 Feb 2013 12:36 PM #22
I'm being pulled off the ExtJS upgrade project onto other work, but I believe I finally got to the core of the issue. If there is no way for you guys to take any action based on this thread, I suppose I'll have to follow up with premium support at a later date, but there's just no way to extract a standalone issue for you to look at outside of our environment.
But here's the issue:
Our environment includes a wrapper around the Ext namespace, called Sjs, which essentially is an object that has Ext as its prototype, so it inherits everything Ext has. There are some additional overrides that gives us some additional functionality from the Sjs namespace, but they appear to not be contributing to this issue.
What I see happening, however, is that some classes (like Ext.window.MessageBox, for example) are required by a number of other classes that get loaded. However, one location may require 'Ext.window.MessageBox', whereas another class may require 'Sjs.window.MessageBox'. Both of these refer to the same class, just from a different namespace map. So, it seems what is happening is that MessageBox (and a few others) are getting queued up twice (once under Ext and once under Sjs), so when it gets to the second entry and the first one has loaded already, it sees it is already loaded, and skips. It isn't skipping the duplicate entry properly, however, as any callback specified in the Ext.require() call does not get called, and numPendingFiles does not get decremented.
I believe this situation may also be contributing to this issue: http://www.sencha.com/forum/showthre...ssing&p=938503
I will see what I can do about making sure all classes get loaded from the same namespace, but the problem is, management does not want "Ext" references in the application code - so Sjs is used - but in the wrapper, before Ext is mapped into our Sjs namespace, a few classes (like MessageBox) are loaded via Ext, since there are some extensions that need to be applied to them once they're in Sjs space. In other words, it may not be possible to ensure the same classes get loaded from the same namespace. Also, as a reminder, this was working fine in 4.0.5. and 4.0.7 and didn't become a problem until 4.1.0.
-
5 Apr 2013 8:04 AM #23
Similar issue Ext.require does not cal callback.
Similar issue Ext.require does not cal callback.
I am seeing a similar issue but only after running it through the sencha build app in 4.1.1.
Prior to the build the require callback is called.
After the build the callback is never called.
Looking for more information now.
All the best!
Clint
-
10 Apr 2013 1:17 AM #24
Wait! Looks like we don't have enough information to add this to bug database. Please follow this template bug format.


Reply With Quote



