-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclassifyed.min.js
8 lines (8 loc) · 1.88 KB
/
classifyed.min.js
1
2
3
4
5
6
7
8
/*
MIT
@repo https://github.com/duzun/classifyed.js
*/
(function(u,p){("function"===typeof define&&define.amd?define:"undefined"!=typeof module&&module.exports?function(h,f){module.exports=f()}:function(h,f){u[p]=f()})([],function(){function h(a,e){if(!a)return a;var b,c;for(b in a)if(l.call(a,b)){var d=a[b];if(!1===e.call(d,b,d,a))return b}if(v)for(c=w;0<c--;)if(l.call(a,b=q[c])&&(d=a[b],!1===e.call(d,b,d,a)))return b;return a}function f(a){function e(b,c){a[b]=c}h(arguments,function(b,c){b&&h(c,e)});return a}function k(){return this}function r(a){var e=
a.displayName||a.name;e||(e=(e=(a+"").match(/function\s+([^\(]*)/))?e[1]:t);return e}var t,l=Object.prototype.hasOwnProperty,n=Object.create,v=!{toString:null}.propertyIsEnumerable("toString"),q="propertyIsEnumerable isPrototypeOf toLocaleString hasOwnProperty valueOf toString constructor".split(" "),w=q.length;k.type=p;var m=k.prototype;k.extend=function(a,e){var b=this,c,d;"function"==typeof a?a={constructor:a}:Array.isArray(a)&&(a=f.apply(t,[{}].concat(a)));a&&l.call(a,"constructor")&&(c=a.constructor)&&
c!==Object||(c=function(){return this.__super__?this.__super__("constructor",arguments):b.apply(this,arguments)});f(c,b,e);var g=b.prototype;c.prototype=d=n(g);d.constructor=c;f(d,a);c.__super__=g;return c};k.parent=function(a,e){var b=this;return(b=b.__super__)&&b.constructor};m.__super__=function(a,e){var b="[super@"+a+"]:cons",c=b in this?this[b]:this.constructor,d;for(;d=c.__super__;)if(c=d.constructor,l.call(d,a)){d=d[a];if(g||this[a]!==d){var g=b in this;if(!d.apply&&!d.call)throw Error("Invalid method for "+
r(c)+".__super__("+a+")",d);this[b]=c;c=d.apply?d.apply(this,e||[]):d.call(this,e&&e[0]);g||delete this[b];return c}g=!0}};m.each=h;m.assign=f;m.funcName=r;"function"!=typeof n&&(n=function(a){return function(e){a.prototype=e;var b=new a;a.prototype=null;b.__proto__=e;return b}}(function(){}));return k})})(this,"Classifyed");