From 10de191dd5a0b5b5da0ca3761b93292eab5a0fa8 Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Sun, 28 Jul 2013 10:10:28 -0700 Subject: [PATCH] Adjust backbone test html, and adjust underscore html to work with Lo-Dash's tweaked chain behavior. Former-commit-id: e5042e1c2811004989e57cc1a24f690c3bab1b25 --- test/backbone.html | 4 ++-- test/underscore.html | 27 +-------------------------- 2 files changed, 3 insertions(+), 28 deletions(-) diff --git a/test/backbone.html b/test/backbone.html index 462c0e50d..66b0ef7ca 100644 --- a/test/backbone.html +++ b/test/backbone.html @@ -30,8 +30,8 @@ diff --git a/test/underscore.html b/test/underscore.html index 67adf1ac6..54de9cc9b 100644 --- a/test/underscore.html +++ b/test/underscore.html @@ -31,7 +31,7 @@ push = arrayProto.push, slice = arrayProto.slice; - if (lodash.chain && lodash.chain().__chain__) { + if (lodash().each().__chain__) { return; } lodash.mixin = function(object) { @@ -53,31 +53,6 @@ lodash.mixin(lodash); - lodash.chain = function(value) { - value = new lodash(value); - value.__chain__ = true; - return value; - }; - - lodash.prototype.chain = function() { - this.__chain__ = true; - return this; - }; - - lodash.prototype.concat = function() { - var result = concat.apply(this.__wrapped__, arguments); - if (this.__chain__) { - result = new lodash(result); - result.__chain__ = true; - } - return result; - }; - - lodash.prototype.pop = function() { - pop.apply(this.__wrapped__, arguments); - return this; - }; - // expose lodash window._ = lodash; }