You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great if we could treat factory functions like traditional JavaScript constructor functions, but with some sugar. So you could do something like this:
varMammal=BRIXX.factory();Mammal.prototype;// {} blank ObjectvarCat=Mammal.extend(EventEmitter.prototype,{legs: function(){return4;}});Cat.prototype;// Includes Mammal, EventEmitter, and {legs: }
It would be great if we could treat factory functions like traditional JavaScript constructor functions, but with some sugar. So you could do something like this:
Would require #13
The text was updated successfully, but these errors were encountered: