From 89cde54d4ba1d9dcb023aaff70d60a75bc0e0407 Mon Sep 17 00:00:00 2001 From: Andy Harrison Date: Mon, 23 Sep 2019 13:07:32 -0400 Subject: [PATCH] - minify --- dist/Class.min.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/Class.min.js b/dist/Class.min.js index 3966a50..39b9504 100644 --- a/dist/Class.min.js +++ b/dist/Class.min.js @@ -1 +1 @@ -(function(){"use strict";let t=!1;function e(t,e,n,o,r,c){Object.defineProperty(t,e,{value:n,writable:o,enumerable:r,configurable:c})}function n(t){return void 0!==t&&/^[a-z_$][a-z0-9_$]*$/i.test(t)}function o(t){t.apply(null,[].slice.call(arguments,1))}function r(){}let c=function(){return"function Class() { [custom code] }"},i=function(){return n(this.constructor.name)?"[instance of "+this.constructor.name+"]":"[instance of Class]"};function s(){}e(s.prototype,"toString",i,!0,!1,!0),e(s,"toString",c,!0,!1,!0);let u=function(s){if(void 0===s)s={};else if(function(t){let e=typeof t;return"object"!==e&&"function"!==e||null===t}(s))throw new TypeError("argument 'options' is not an object");let l="function"==typeof s.constructorFn?s.constructorFn:o,a="function"==typeof s.returnFn?s.returnFn:r,f=function(){if(!(this&&this instanceof f)||this.constructor!==f.prototype.constructor&&!t)return a.apply(null,arguments);{let o=this;o.constructor===f.prototype.constructor&&e(o,"constructor",f,!0,!1,!0);let r,c=!1,i=!1,s=function(){if(!c){c=!0,r=f.prototype.constructor.apply(o,arguments)||{};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&Object.defineProperty(s,t,{get:r[t].get?r[t].get.bind(o):void 0,set:r[t].set?r[t].set.bind(o):void 0,enumerable:!0,configurable:!0});e(s,"addProtectedMember",function(t,e,n,o,r){if(t)throw new Error("protected members cannot be added outside of the constructor");if(void 0===n||""+n=="")throw new TypeError("argument 'name' is required");if(void 0!==o&&"function"!=typeof o)throw new TypeError("argument 'getter' is not a function");if(void 0!==r&&"function"!=typeof r)throw new TypeError("argument 'setter' is not a function");(o||r)&&(e[n]={get:o,set:r})}.bind(null,i,r),!1,!1,!0),e(s,"removeProtectedMember",function(t,e,n){if(t)throw new Error("protected members cannot be removed outside of the constructor");if(void 0===n||""+n=="")throw new TypeError("argument 'name' is required");delete e[n]}.bind(null,i,r),!1,!1,!0)}},u=f.name;if(t=!0,l.apply(o,[s].concat([].slice.call(arguments))),t=!1,i=!0,c||(n=u+" constructor does not include a call to the 'Super' argument",console&&(console.warn||console.log)(n)),o.constructor!==f)return r;delete s.addProtectedMember,delete s.removeProtectedMember}var n};e(f,"name",n(s.className)?s.className:n(this.name)?this.name:"Class",!1,!1,!0),e(f,"toString",c,!0,!1,!0),this.extend===u&&e(f,"extend",u,!0,!1,!0);let d=function(){};d.prototype=this.prototype;let p=new d;d=null,e(p,"constructor",this,!0,!1,!0),e(p,"toString",i,!0,!1,!0),e(f,"prototype",p,!1,!1,!1);for(let t in s.extensions)Object.prototype.hasOwnProperty.call(s.extensions,t)&&(p[t]=s.extensions[t]);return f};e(u,"toString",function(){return"function extend() { [custom code] }"},!0,!1,!0),e(s,"extend",u,!0,!1,!0);let l=this,a=l.Class;e(s,"noConflict",function(){return l.Class=a,l=a=null,delete s.noConflict,s},!0,!1,!0),l.Class=s}).call(window); \ No newline at end of file +(function(){"use strict";let t=!1;function e(t,e,n,o,r,i){Object.defineProperty(t,e,{value:n,writable:o,enumerable:r,configurable:i})}function n(t){return void 0!==t&&/^[a-z_$][a-z0-9_$]*$/i.test(t)}function o(t){t.apply(null,[].slice.call(arguments,1))}function r(){}let i=function(){return"function Class() { [custom code] }"},c=function(){return"[instance of "+(n(this.constructor.name)?this.constructor.name:"Class")+"]"};let s=function(){};e(s.prototype,"toString",c,!0,!1,!0),e(s,"toString",i,!0,!1,!0);let u=function(s){if(void 0===s)s={};else if(function(t){let e=typeof t;return"object"!==e&&"function"!==e||null===t}(s))throw new TypeError("argument 'options' is not an object");let l="function"==typeof s.constructorFn?s.constructorFn:o,f="function"==typeof s.returnFn?s.returnFn:r,a=!1,p=function(){if(!(this&&this instanceof p)||this.constructor!==p.prototype.constructor&&!t)return f.apply(null,arguments);{let o=this;o.constructor===p.prototype.constructor&&e(o,"constructor",p,!0,!1,!0);let r,i=!1,c=function(){if(!i){i=!0,r=p.prototype.constructor.apply(o,arguments)||{};for(let t in r)Object.prototype.hasOwnProperty.call(r,t)&&Object.defineProperty(c,t,{get:r[t].get?r[t].get.bind(o):void 0,set:r[t].set?r[t].set.bind(o):void 0,enumerable:!0,configurable:!0});e(c,"defineProtectedMember",function(e,n,o){if(!t)throw new Error("protected members cannot be added or removed outside of the constructor");if(void 0===n||""+n=="")throw new TypeError("argument 'name' is required");if(void 0!==(o=new Object(o)).get&&"function"!=typeof o.get)throw new TypeError("option 'get' is not a function");if(void 0!==o.set&&"function"!=typeof o.set)throw new TypeError("option 'set' is not a function");o.get||o.set?e[n]={get:o.get,set:o.set}:delete e[n]}.bind(null,r),!1,!1,!0)}},s=p.name;if(t=!0,l.apply(o,[c].concat([].slice.call(arguments))),i||a||(n=s+" constructor does not call Super()",console&&(console.warn||console.log)(n),a=!0),o.constructor!==p)return r;t=!1,delete c.defineProtectedMember}var n};e(p,"name",n(s.className)?s.className:n(this.name)?this.name:"Class",!1,!1,!0),e(p,"toString",i,!0,!1,!0),this.extend===u&&e(p,"extend",u,!0,!1,!0);let d=function(){};d.prototype=this.prototype;let y=new d;d=null,e(y,"constructor",this,!0,!1,!0),e(y,"toString",c,!0,!1,!0),e(p,"prototype",y,!1,!1,!1);for(let t in s.extensions)Object.prototype.hasOwnProperty.call(s.extensions,t)&&(y[t]=s.extensions[t]);return p};e(u,"toString",function(){return"function extend() { [custom code] }"},!0,!1,!0),e(s,"extend",u,!0,!1,!0);let l=this,f=l.Class;e(s,"noConflict",function(){return l.Class=f,l=f=null,delete s.noConflict,s},!0,!1,!0),l.Class=s}).call(this);