Created
February 11, 2015 23:06
-
-
Save ivandotv/59f5e9f67a33a9df5733 to your computer and use it in GitHub Desktop.
inheritsOLOO
This file contains 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
window.ikiThemes.Utils = (function ($) { | |
return { | |
//http://nodejs.org/docs/latest/api/util.html#util_util_inherits_constructor_superconstructor | |
inherits: function inherits(ctor, superCtor) { | |
ctor.super_ = superCtor; | |
ctor.prototype = Object.create(superCtor.prototype); | |
}, | |
inheritsOLOO: function (superCtor) { | |
var o = Object.create(superCtor); | |
o.super_ = superCtor; | |
return o; | |
} | |
} | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment