Skip to content

Instantly share code, notes, and snippets.

v1, 2018-10-31
--------------
http://jsben.ch/vVt2A
https://i.imgur.com/9mGBcwr.png
@Pampattitude
Pampattitude / Class.js
Created November 24, 2015 11:01 — forked from shakyShane/Class.js
Javascript class-like inheritance
/* Simple JavaScript Inheritance for ES 5.1 ( includes polyfill for IE < 9 )
* based on http://ejohn.org/blog/simple-javascript-inheritance/
* (inspired by base2 and Prototype)
* MIT Licensed.
*/
(function (global) {
"use strict";
if (!Object.create) {
Object.create = (function () {
### Keybase proof
I hereby claim:
* I am Pampattitude on github.
* I am pampattitude (https://keybase.io/pampattitude) on keybase.
* I have a public key whose fingerprint is 2234 DEDF 642F 376E BD83 C59F D871 B6E6 6399 02A8
To claim this, I am signing this object: