From 4f688028ad55e84865ddd4da706e391618dac599 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Thu, 2 Aug 2012 00:32:15 -0700 Subject: [PATCH] Update vendors. Former-commit-id: d1dd2ecf337cf8cda71e0da2af0647813b8de24a --- vendor/backbone/backbone.js | 8 +- vendor/backbone/test/router.js | 52 ++++++++++++- vendor/benchmark.js/benchmark.js | 129 +++++++++++++++---------------- 3 files changed, 122 insertions(+), 67 deletions(-) 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.$('