PDA

View Full Version : [CLOSED]No Bootstrap?



sg707
16 Feb 2011, 12:37 PM
I was testing out dynamic loading but when I peeked into boostrap.js



(function(){

var path,
i, ln,
scriptSrc,
match,
scripts = document.getElementsByTagName('script');

for (i = 0, ln = scripts.length; i < ln; i++) {
scriptSrc = scripts[i].src;

match = scriptSrc.match(/bootstrap\.js$/);

if (match) {
path = scriptSrc.substring(0, scriptSrc.length - match[0].length);
break;
}
}

document.write('<script type="text/javascript" src="' + path + 'ext-core-debug.js"></script>');
document.write('<script type="text/javascript" src="' + path + 'ext-all-debug.js"></script>');

})();



So, I'm guessing boostrap is not ready yet?

aconran
16 Feb 2011, 4:01 PM
This is correct.

Basically bootstrap.js only exists for our own framework developers convenience. Feel free to use the distributed bootstrap.js or to include ext-core and ext-all yourself.

The bootstrap file that we use during SDK development sets up the Ext.Loader to work with all of the paths that we pull in our various classes from different places.

If you're looking at enabling the loader for your own development take a look at the blog post here:
http://www.sencha.com/blog/countdown-to-ext-js-4-dynamic-loading-and-new-class-system/