Remove the need to call chain on _(…) wrapped values.

Former-commit-id: 21861c88e3ec9af955d844c025b50cb32c322809
This commit is contained in:
John-David Dalton
2012-11-18 21:06:24 -08:00
parent 0c0db3babb
commit 20630aeb47
6 changed files with 66 additions and 47 deletions

View File

@@ -1901,8 +1901,8 @@
var wrapped = _({ '0': 1, 'length': 1 });
wrapped.shift();
deepEqual(wrapped.keys(), ['length']);
equal(wrapped.first(), undefined);
deepEqual(wrapped.keys().value(), ['length']);
equal(wrapped.first().value(), undefined);
});
}());
@@ -1915,8 +1915,8 @@
var wrapped = _({ '0': 1, 'length': 1 });
wrapped.splice(0, 1);
deepEqual(wrapped.keys(), ['length']);
equal(wrapped.first(), undefined);
deepEqual(wrapped.keys().value(), ['length']);
equal(wrapped.first().value(), undefined);
});
}());