Skip to content

Instantly share code, notes, and snippets.

anonymous
anonymous / Test.markdown
Created April 23, 2014 16:54
A Pen by Grisha.
@jasdeepkhalsa
jasdeepkhalsa / class.js
Created December 26, 2012 14:14
Simple JavaScript Inheritance (Class) by John Resig
/* Simple JavaScript Inheritance
* By John Resig http://ejohn.org/
* MIT Licensed.
*/
// Inspired by base2 and Prototype
(function(){
var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
// The base Class implementation (does nothing)
this.Class = function(){};