forked from 0x2620/oxjs
rename build/ to min/
This commit is contained in:
parent
51696562f1
commit
383433a06d
25 changed files with 84 additions and 75 deletions
|
|
@ -101,7 +101,7 @@ Ox.PATH = (function() {
|
|||
}
|
||||
}
|
||||
}());
|
||||
//@ Ox.MODE <s> Mode ('build' or 'dev')
|
||||
//@ Ox.MODE <s> Mode ('dev' or 'min')
|
||||
Ox.MODE = Ox.PATH.slice(0, -1).split('/').pop();
|
||||
//@ Ox.PREFIXES <[str]> `['', 'K', 'M', 'G', 'T', 'P']`
|
||||
Ox.PREFIXES = ['', 'K', 'M', 'G', 'T', 'P'];
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ this.Ox = function(value) {
|
|||
|
||||
/*@
|
||||
Ox.load <f> Loads OxJS and, optionally, one or more modules
|
||||
To load OxJS, include `/build/Ox.js` (minified version) or `/dev/Ox.js`
|
||||
To load OxJS, include `/min/Ox.js` (minified version) or `/dev/Ox.js`
|
||||
(development version), and use `Ox.load(callback)` at the beginning of your
|
||||
program. The callback will run once OxJS is loaded and the document is
|
||||
ready. To choose the version programatically (for example: minified version
|
||||
|
|
|
|||
|
|
@ -36,12 +36,12 @@
|
|||
translations = {};
|
||||
Ox.forEach(Ox.LOCALES, function(locales, module) {
|
||||
if (
|
||||
(!module || Ox.load[module])
|
||||
(module == 'Ox' || Ox.load[module])
|
||||
&& Ox.contains(locales, locale)
|
||||
) {
|
||||
urls.push([
|
||||
Ox.PATH + 'Ox' + (module ? '.' + module : '')
|
||||
+ '/json/locale.' + locale + '.json'
|
||||
Ox.PATH + module + '/json/locale.'
|
||||
+ locale + '.json'
|
||||
]);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue