View Full Version : [FIXED-EXTJSIV-329] Ext.require() does not fire callback after a failed load

25 Mar 2011, 1:51 AM

it appears that I've stumbled upon a rather annoying bug concerning Ext.require(). Here's my code:

// ext-core.js is loaded
Ext.Loader.setPath("Ext", "/js/externals/ext4/src");
enabled: true,
enableCacheBuster: false

Ext.require('nonexistentClass', function () { /* this is never called, obviously */ });
Ext.require('Ext.form.ComboBox', function () { /* but neither is this! */ });

When the first require() call fails, the callback of the second is not invoked despite the specified class being loaded just fine. Why is that?

Jacky Nguyen
25 Mar 2011, 12:00 PM
This has been fixed, thank you for reporting