diff --git a/build/clone.min.js b/build/clone.min.js index fcd724d..f28f670 100644 --- a/build/clone.min.js +++ b/build/clone.min.js @@ -1,13 +1,13 @@ -var $object={clone:function(b,a){if(arguments.length){var c=$object.describe.apply(null,arguments);if(c.hasOwnProperty("constructor")){var d=c.constructor.value;if("string"==typeof d){var f=d,d=c.constructor.value=function(){return this.applySuper(arguments)};d.typeName=f}else d.typeName||(d.typeName=d.name||this.constructor.typeName+"_clone");d.prototype=this}}return Object.create(this,c)},create:function(b,a){var c=this.clone();return c.constructor.apply(c,arguments)||c},constructor:function CloneObject(a, -c){a&&this.defineProperties(a,c);this.constructor===CloneObject&&this.seal()},describe:function(b,a){var c={},d=a?a:{configurable:!0,enumerable:!0,writable:!0},f=!(a&&a.enumerable),e;for(e in b){var h=b[e],g=Object.create(d);if("("==e[0]){var i=e.match(/^\((((get|set|const|hidden|final|writable) *)+)\) +(.+)$/);if(i){var k=i[1].split(" ").sort();e=i[4];c[e]&&(g=c[e]);for(var j in k)switch(k[j]){case "const":g.writable=!1;break;case "final":g.configurable=!1;g.writable=!1;break;case "get":g.get=h; -break;case "hidden":g.enumerable=!1;break;case "set":g.set=h;break;case "writable":g.writable=!0}}}if(g.get||g.set){if("string"==typeof h){var l=h;"string"==typeof g.get?g.get=function(){return this[l]}:g.set=function(a){this[l]=a}}g.value=void 0;g.get&&(h=void 0)}else g.value=h;if(f&&"function"==typeof h||"_"==e[0])g.enumerable=!1;c[e]=g}return c},applySuper:function(b,a){"string"!=typeof b&&(b instanceof Array&&(a=b),b="constructor");"__super__"in this||this.defineProperty("__super__",{value:Object.getPrototypeOf(Object.getPrototypeOf(this)), -writable:!0,configurable:!0});var c=this.__super__;this.__super__=Object.getPrototypeOf(c);var d=c[b].apply(this,a);this.__super__=c;return d},callSuper:function(b,a,c){var d=Array.prototype.slice.call(arguments,1);return this.applySuper(b,d)},createSuperSafeCallback:function(b,a){if("string"==typeof b){var c=this[b];"undefined"==typeof a&&(a=this)}else c=b;var d=this,f=this.__super__;return function(){if(d.__super__===f)return c.apply(a||this,arguments);var b=d.__super__;d.__super__=f;var h=c.apply(a|| -this,arguments);d.__super__=b;return h}},getState:function(b){for(var a=$object.create(),b=b?Object.getOwnPropertyNames(this):Object.keys(this),c=0;c