Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Add 4.0.6 files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitchell Simoens committed Oct 19, 2011
1 parent 3ecb4a5 commit 656fcfb
Show file tree
Hide file tree
Showing 1,143 changed files with 416,120 additions and 0 deletions.
73 changes: 73 additions & 0 deletions assets/ext-4.0.6/bootstrap.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
This file is part of Ext JS 4
Copyright (c) 2011 Sencha Inc
Contact: http://www.sencha.com/contact
Commercial Usage
Licensees holding valid commercial licenses may use this file in accordance with the Commercial Software License Agreement provided with the Software or, alternatively, in accordance with the terms contained in a written agreement between you and Sencha.
If you are unsure which license is appropriate for your use, please contact the sales department at http://www.sencha.com/contact.
*/
/**
* Load the library located at the same path with this file
*
* Will automatically load ext-all-debug.js if any of these conditions is true:
* - Current hostname is localhost
* - Current hostname is an IP v4 address
* - Current protocol is "file:"
*
* Will load ext-all.js (minified) otherwise
*/
(function() {

var scripts = document.getElementsByTagName('script'),
localhostTests = [
/^localhost$/,
/\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(:\d{1,5})?\b/ // IP v4
],
host = window.location.hostname,
isDevelopment = null,
queryString = window.location.search,
test, path, i, ln, scriptSrc, match;

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;
}
}

if (queryString.match('(\\?|&)debug') !== null) {
isDevelopment = true;
}
else if (queryString.match('(\\?|&)nodebug') !== null) {
isDevelopment = false;
}

if (isDevelopment === null) {
for (i = 0, ln = localhostTests.length; i < ln; i++) {
test = localhostTests[i];

if (host.search(test) !== -1) {
isDevelopment = true;
break;
}
}
}

if (isDevelopment === null && window.location.protocol === 'file:') {
isDevelopment = true;
}

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

})();

Loading

0 comments on commit 656fcfb

Please sign in to comment.