mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Update test/underscore.html and test/backbone.html to account for chain existing in Lo-Dash.
Former-commit-id: f815e7a3ac6e9cc6c048eab82acc32e462dbb021
This commit is contained in:
@@ -33,13 +33,6 @@
|
|||||||
'debounce': lodash.debounce,
|
'debounce': lodash.debounce,
|
||||||
'defer': lodash.defer
|
'defer': lodash.defer
|
||||||
});
|
});
|
||||||
if (!_.chain) {
|
|
||||||
_.mixin({
|
|
||||||
'chain': function(value) {
|
|
||||||
return new _(value);
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<script src="../vendor/backbone/backbone.js"></script>
|
<script src="../vendor/backbone/backbone.js"></script>
|
||||||
<script src="../vendor/backbone/test/environment.js"></script>
|
<script src="../vendor/backbone/test/environment.js"></script>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
push = arrayProto.push,
|
push = arrayProto.push,
|
||||||
slice = arrayProto.slice;
|
slice = arrayProto.slice;
|
||||||
|
|
||||||
if (_.chain) {
|
if (_.chain().__chain__) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
_.mixin = function(object) {
|
_.mixin = function(object) {
|
||||||
|
|||||||
Reference in New Issue
Block a user