mirror of
https://github.com/jashkenas/backbone.git
synced 2026-04-30 03:00:06 -04:00
Merge pull request #1899 from caseywebdev/array-literal
Shave some bytes with an array literal
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user