Comparing version 1.3.1 to 1.3.2
{ | ||
"name": "bones", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
@@ -13,3 +13,3 @@ "main": "./bones.js", | ||
"optimist": "0.1.x", | ||
"mirror": "0.2.x" | ||
"mirror": "0.3.x" | ||
}, | ||
@@ -16,0 +16,0 @@ |
@@ -78,5 +78,8 @@ var utils = module.exports = require('../shared/utils'); | ||
utils.sortByLoadOrder = function(assets) { | ||
var order = _.intersect(bones.plugin.order, assets); | ||
assets.length = 0; | ||
for (var i = 0; i < order.length; i++) assets[i] = order[i]; | ||
var reference = bones.plugin.order; | ||
assets.sort(function loadOrderSort(a, b) { | ||
a = reference.indexOf(a); | ||
b = reference.indexOf(b); | ||
return (a < 0 || b < 0) ? b - a : a - b; | ||
}); | ||
}; | ||
@@ -83,0 +86,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
301671
8513
+ Addedmirror@0.3.3(transitive)
+ Addeduglify-js@1.0.2(transitive)
- Removedmirror@0.2.1(transitive)
Updatedmirror@0.3.x