diff --git a/vendor/backbone/backbone.js b/vendor/backbone/backbone.js index a307e09ff..f401b08cf 100644 --- a/vendor/backbone/backbone.js +++ b/vendor/backbone/backbone.js @@ -134,6 +134,9 @@ rest = []; events = events.split(eventSplitter); + + // Fill up `rest` with the callback arguments. Since we're only copying + // the tail of `arguments`, a loop is much faster than Array#slice. for (i = 1, length = arguments.length; i < length; i++) { rest[i - 1] = arguments[i]; } @@ -1023,6 +1026,9 @@ var docMode = document.documentMode; var oldIE = (isExplorer.exec(navigator.userAgent.toLowerCase()) && (!docMode || docMode <= 7)); + // Normalize root to always include trailing slash + if (!trailingSlash.test(this.options.root)) this.options.root += '/'; + if (oldIE && this._wantsHashChange) { this.iframe = Backbone.$('