Expose wrapper.prototype as _.prototype

This commit is contained in:
Ryan W Tenney
2010-10-05 20:32:57 -04:00
parent 4484002f7e
commit 644c5aa2ce

View File

@@ -670,6 +670,9 @@
// underscore functions. Wrapped objects may be chained.
var wrapper = function(obj) { this._wrapped = obj; };
// Expose `wrapper.prototype` as `_.prototype`
_.prototype = wrapper.prototype;
// Helper function to continue chaining intermediate results.
var result = function(obj, chain) {
return chain ? _(obj).chain() : obj;