/*! * clah v1.2.1 * https://github.com/AlphaHydrae/clah * * By John Resig http://ejohn.org/ * Additions by Alpha Hydrae (https://github.com/AlphaHydrae) * MIT Licensed. */(function(e){var t=!1,n=/xyz/.test(function(){xyz})?/\b_super\b/:/.*/,r=function(){};r.extend=function(e){function o(){!t&&this.init&&this.init.apply(this,arguments)}var r=this.prototype;t=!0;var i=new this;t=!1;for(var s in e)i[s]=typeof e[s]=="function"&&typeof r[s]=="function"&&n.test(e[s])?function(e,t){return function(){var n=this._super;this._super=r[e];var i=t.apply(this,arguments);return this._super=n,i}}(s,e[s]):e[s];return o.prototype=i,o.prototype.constructor=o,o.extend=arguments.callee,o};var i=r.extend({callback:function(e){var t=Array.prototype.slice.call(arguments,1);t.splice(0,0,0,0);var n=typeof e=="function"?e:this[e];if(typeof n!="function")throw typeof e=="string"?new Error('Callback error: this object has no method "'+e+'"'):new Error("Callback error: a function or method name must be given");var r=this;return function(){var e=Array.prototype.slice.call(arguments);return Array.prototype.splice.apply(e,t),n.apply(r,e)}}});i.Class=r;if(typeof module=="object"&&module.exports===e)module.exports=i;else{var s=e.Class;i.noConflict=function(t){return e.Class===i&&(e.Class=s),i},e.Class=i}})(this);