Skip to content

Instantly share code, notes, and snippets.

@ivandotv
Created February 11, 2015 23:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ivandotv/59f5e9f67a33a9df5733 to your computer and use it in GitHub Desktop.
Save ivandotv/59f5e9f67a33a9df5733 to your computer and use it in GitHub Desktop.
inheritsOLOO
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