/* * Class: Super lightweight class-based inheritance for JavaScript * http://oroboto.github.com/class/ * * Copyright (c) 2012 Oroboto. All rights reserved. * MIT License: http://oroboto.github.com/class/LICENSE */ (function(b){var a="constructor",c="prototype";b.Class=b.Class||{};b.Class.create=function(e){if(!e){return}var h=e.base||Object,i=h[c][a],g=e.hasOwnProperty(a)?e[a]:i,f=e[c],d=function(m,l){var k;for(k in l){if(l.hasOwnProperty(k)){m[k]=l[k]}}function j(){}j[c]=m.__base__=l[c];m[c]=new j;m[c][a]=m;return m}(function(){this._base=i;g.apply(this,arguments)},h);if(f){f.call(d[c],d.__base__)}return d}})(this);