Move bound inheritance hookup inside bound.

Former-commit-id: 7f95fffa14ef42f8f065aad124ac883740baac64
This commit is contained in:
John-David Dalton
2012-12-03 22:07:45 -08:00
parent 12b0186f5a
commit 6188c38053
2 changed files with 7 additions and 16 deletions

View File

@@ -209,14 +209,6 @@
bound(['b'], 'c');
deepEqual(args, ['a', ['b'], 'c']);
});
test('ensure `new bound` is an instance of `bound` and `func`', function() {
var func = function() {},
bound = _.bind(func, {}),
instance = new bound;
ok(instance instanceof bound && instance instanceof func);
});
}());
/*--------------------------------------------------------------------------*/