Created
July 24, 2015 20:32
-
-
Save greduan/d8e0989c30c7b33f5982 to your computer and use it in GitHub Desktop.
What I've been looking for OLOO
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MyClass = { | |
prototype: { | |
// prototypal members and methods | |
}, | |
create: function (options) { | |
// do stuff with options | |
return Object.create(MyClass.prototype, options) | |
}, | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment