Merge pull request #1899 from caseywebdev/array-literal

Shave some bytes with an array literal
This commit is contained in:
Jeremy Ashkenas
2012-12-11 08:50:51 -08:00

View File

@@ -19,10 +19,10 @@
var previousBackbone = root.Backbone;
// Create a local reference to array methods.
var ArrayProto = Array.prototype;
var push = ArrayProto.push;
var slice = ArrayProto.slice;
var splice = ArrayProto.splice;
var array = [];
var push = array.push;
var slice = array.slice;
var splice = array.splice;
// The top-level namespace. All public Backbone classes and modules will
// be attached to this. Exported for both CommonJS and the browser.