Fix incorrect prototype.constructor comment

prototype.constructor does not affect instanceof
This commit is contained in:
Jimmy Do
2011-03-17 14:00:12 -07:00
parent 0cdc525961
commit 7ceab2ca63

View File

@@ -1045,7 +1045,7 @@
// Add static properties to the constructor function, if supplied.
if (staticProps) _.extend(child, staticProps);
// Correctly set child's `prototype.constructor`, for `instanceof`.
// Correctly set child's `prototype.constructor`.
child.prototype.constructor = child;
// Set a convenience property in case the parent's prototype is needed later.