Skip to content
Browse files

fixed issue with old uglify-js version

  • Loading branch information...
1 parent 18134a8 commit 4333702b72806c3109f8c595db28d18d16621622 @constantology committed Nov 23, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 m8.min.js
View
2 m8.min.js
@@ -1 +1 @@
-[object Object]
+!function(e,t,n){"use strict";function r(e){return e}function i(e,t){switch(U(e)){case"array":break;case"string":e=e.split(".");break;default:return u(t)}if(dt.test(e[0])&&(t=r,e.shift()),!e.length)return u(t);e[0].indexOf("^")||(t||"^"==e[0]?e.shift():e[0]=e[0].substring(1)),t=u(t);for(var n;n=e.shift();)t=t[n]||(t[n]=C());return t}function u(t){return"commonjs"==X?t?x(t)?t.exports:t:module.exports:t||e}function s(e){var t,n=Number(e);return isNaN(n)?(t=e+"")in nt?nt[t]:e:n}function o(e,t,n){n=n===!0,t||(t=e,e=C());for(var r in t)!_(t,r)||n&&_(e,r)||(e[r]=t[r]);return e}function c(e,t,n){return n=n===!0,t||(t=e,e=C()),Object.getOwnPropertyNames(t).reduce(function(e,r){return n&&_(e,r)||a(e,r,h(t,r)),e},e)}function a(e,n,i){var u,s,o,c,a=gt.call(arguments,3),f=m(e,n);switch(U(a[0])){case"string":s=ot[a.shift()];break;case"object":s=a.shift();break;default:o=U(i),s="object"!=o&&f?h(e,n):null,!s||(s="function"==o?ot.cw:ot.cew)}return c=a.shift()===!0,u=a.shift()===!0,f&&!c?u&&Error(t+".def cannot overwrite existing property: "+n+", in item type: "+z(e)+"."):("object"!=o&&s&&(i=l(i,s)),(i.get||i.set)&&delete i.writable,Object.defineProperty(e,n,i)),r}function f(e,t,n,i,u){n||(n="cw");for(var s in t)!_(t,s)||a(e,s,t[s],n,i,u);return r}function l(e,t){return o("object"==U(e)?e:{value:e},"object"==U(t)?t:ot[(t+"").toLowerCase()]||ot.cew,!0)}function h(e,t){return Object.getOwnPropertyDescriptor(e,t)}function d(e){return!p(e)||!M(e)&&N(e)||!1}function p(e){return!(null===e||e===K||"number"==typeof e&&isNaN(e))}function b(t,n,r){"string"!=typeof n&&t[V]&&(r=n,n=t[V]);var i,u=C();return u[V]=n,u[J]="library","commonjs"==X&&x(r)?r.exports=t:(r||(r=e),(i=r[n])&&N(i)?(i[n]=t,t=c(i,t)):a(r,n,l({value:t},"ew")),"browser"==X&&("function"!=typeof define||!define.amd||define(n,[],function(){return t}))),f(t,u,"w",!0),t}function g(e){return e.name||e.displayName||((e+"").match(pt)||["",""])[1].trim()}function y(e){return v(e,Array.coerce(arguments,1))}function m(e,t){return t+""in Object(e)}function v(e,t,n){return(e+"").replace(n||lt,function(e,n){return t[n]||""})}function w(){return yt.replace(ht,j)}function j(e){var t=0|16*at();return("x"==e?t:8|3&t).toString(16)}function _(e,t){return et.hasOwnProperty.call(Object(e),t+"")}function O(e,t){return e?m(e,"id")&&!d(e.id)?e.id:e.id=k(t):k(t)}function k(e){return(e||st)+"-"+ ++ut}function x(e){if(null===tt)return!1;try{return e instanceof tt}catch(t){return!1}}function N(e){return m(e,"length")||"object"==U(e)}function M(e){return("length"in(e=Object(e))?e:Object.keys(e)).length}function A(e,t){var n;if(t)n=U(t);else switch(n=U(e)){case"array":case"object":t=e,e=new(t.constructor||Object);break;default:return e}switch(n){case"object":return Object.keys(t).reduce(E,{source:t,target:e}).target;case"array":return e.length=t.length,t.reduce(D,e);default:return t}}function D(e,t,n){return e[n]=U(e[n])===U(t)?A(e[n],t):A(t),e}function E(e,t){return e.target[t]=U(e.target[t])===U(e.source[t])?A(e.target[t],e.source[t]):A(e.source[t]),e}function Y(){}function C(e){var t=Object.create(null);return"object"==typeof e?o(t,e):t}function S(e,t,n){var r;if(n+="",arguments.length>3){for(n=gt.call(arguments,2);r=n.shift();)if(S(e,t,r))return!0;return!1}if(e(t,n))return!0;if("string"!=typeof t&&~n.indexOf(".")){for(n=n.split(".");r=n.shift();){if(!S(e,t,r))return!1;t=t[r]}return!0}return!1}function L(e,t){for(var n=[e];t>=++e;)n.push(e);return n}function T(e,t){t=Array.isArray(t)?t:gt.call(arguments,1);var n=Array.isArray(e)?F:H;return t.forEach(n,e),e}function F(e){var t=this.indexOf(e);t=~t?t:!isNaN(e)&&e in this?e:t,0>t||this.splice(t,1)}function H(e){delete this[e]}function I(e){return et.toString.call(e)}function R(e){return et.valueOf.call(e)}function P(e){return e==it?it:e==rt||"nodelist"==e?rt:e.indexOf("htm")||e.lastIndexOf("element")+7!==e.length?!1:"htmlelement"}function U(e){var t=I(e);return t in ct?ct[t]:ct[t]=t.split(" ")[1].split("]")[0].replace(bt,"$1").toLowerCase()}function z(e){if(null===e||e===K)return!1;var t=m(e,J)?e[J]:null===Object.getPrototypeOf(e)?"nullobject":K;return"object"!==t?t:S(_,e,"configurable","enumerable","writable")&&_(e,"value")||S(_,e,"get","set")?"descriptor":t}function W(e,t){if(!t)return A(e);switch(U(t)){case"object":return Object.keys(t).reduce($,{source:t,target:e}).target;case"array":return t.reduce(Z,e);default:return e}}function Z(e,t,n){return e[n]=m(e,n)?U(e[n])==U(t)?W(e[n],t):e[n]:A(t),e}function $(e,t){return e.target[t]=m(e.target,t)?U(e.target[t])==U(e.source[t])?W(e.target[t],e.source[t]):e.target[t]:A(e.source[t]),e}function q(){return gt.call(arguments).forEach(G),r}function B(e){e(this,r)}function G(e){m(e,Q)||a(e,Q,0,"w");var t=mt[e[V]||g(e)];t&&(t.slice(e[Q]).forEach(B,e),e[Q]=t.length)}"undefined"==typeof global?e:e=global;var K,V="__name__",J="__type__",Q="__xid__",X="undefined"!=typeof module&&"exports"in module&&"function"==typeof require?"commonjs":"undefined"!=typeof navigator?"browser":"other",et=Object.prototype,tt="commonjs"!=X?null:require("module"),nt=[!1,0/0,null,!0,K].reduce(function(e,t){return e[t+""]=t,e},C()),rt="htmlcollection",it="htmldocument",ut=999,st="anon",ot=function(){var e={ce:"ec",cw:"wc",ew:"we",cew:"cwe ecw ewc wce wec".split(" ")},t="configurable enumerable writable".split(" "),n={c:[!0,!1,!1],ce:[!0,!0,!1],cew:[!0,!0,!0],cw:[!0,!1,!0],e:[!1,!0,!1],ew:[!1,!0,!0],r:[!1,!1,!1],w:[!1,!1,!0]},r=Object.keys(n).reduce(function(r,i){function u(e){r[e]=r[i]}var s=e[i];return r[i]=t.reduce(function(e,t,r){return e[t]=n[i][r],e},C()),!s||(Array.isArray(s)?s.forEach(u):u(s)),r},C());return delete r[K],r}(),ct="Array Boolean Date Function Null Number Object RegExp String Undefined".split(" ").reduce(function(e,t){return e["[object "+t+"]"]=t.toLowerCase(),e},C()),at=Math.random,ft=/global|window/i,lt=/\$?\{([^\}]+)\}/g,ht=/[xy]/g,dt=RegExp("^\\u005E?"+t),pt=/[\s\(]*function([^\(]+).*/,bt=/^[Ww]ebkit|[Mm]oz|O|[Mm]s|[Kk]html(.*)$/,gt=Array.prototype.slice,yt="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",mt={Array:[],Boolean:[],Date:[],Function:[],Number:[],Object:[],RegExp:[],String:[]};a(q,"cache",function(e,t){return"string"==typeof e||(e=e[V]||g(e)),mt[e]||(mt[e]=[]),mt[e].push(t),r},"w"),q.cache("Array",function(e){var t=e.prototype;a(e,"coerce",function(e,t,n){return m(e,"length")?(t="number"==z(t)?t>0?t:0:0,n="number"==z(n)?n>t?n:0>=n?e.length+n:t+n:e.length,gt.call(e,t,n)):[e]},"w"),f(t,{find:function(e,t){var n=-1,r=this.length>>>0;for(t||(t=this);r>++n;)if(e.call(t,this[n],n,this))return this[n];return null},invoke:function(n){var r=e.coerce(arguments,1);return t.map.call(this,function(e){return e&&"function"==typeof e[n]?e[n].apply(e,r):K})},pluck:function(e,n){return n=n===!0,t.reduce.call(this,function(t,r){var i=Object.value(r,e);return n&&!p(i)||t.push(i),t},[])}},"w")}),q.cache("Boolean",function(e){a(e,"coerce",function(e){switch(z(e)){case"boolean":return e;case"nan":case!1:return!1;case"number":case"string":return!(e in nt?!nt[e]:0===Number(e))}return!0},"w")}),q.cache("Function",function(e){function t(e){return!e||e in u}function n(){return""+this}function r(){return this}var i="__xname__",u={Anonymous:!0,anonymous:!0},s={mimic:function(e,t){var i=e.valueOf();return f(this,{displayName:t||g(i),toString:n.bind(i),valueOf:r.bind(i)},"c",!0),this}};s[V]={get:function(){if(!this[i]){var e=this.valueOf(),n=e!==this?t(e[V])?null:e[V]:null,r=n||g(this);!t(r)||t(this.displayName)||(r=this.displayName),a(this,i,r||"anonymous","w")}return this[i]}},f(e.prototype,s,"w"),a(e,"anon_list",{value:u},"w")}),q.cache("Object",function(e){a(e.prototype,J,o({get:function(){var e,t=this,n=t.constructor,r=U(t),i=P(r)||(ft.test(r)?"global":!1);return i?i:"number"==r?isNaN(t)?"nan":"number":"object"==r&&"function"==typeof n&&"function"!=n[J]?(e=(n[V]+"").toLowerCase(),e&&"anonymous"!=e?e:n[J]||r):r}},ot.r)),f(e,{key:function(t,n){return e.keys(e(t)).find(function(e){return t[e]===n})},reduce:function(t,n,r){return e.keys(e(t)).reduce(function(e,r,i){return e=n.call(t,e,t[r],r,t,i)},r)},value:function(t,n){if(isNaN(n)){if(m(t,n))return t[n];if(~n.indexOf(".")){var r;for(n=n.split(".");(r=n.shift())&&(t=e.value(t,r))!==K;);return t}}return d(t)?K:p(t[n])?t[n]:"function"==typeof t.get?t.get(n):"function"==typeof t.getAttribute?t.getAttribute(n):K},values:function(t){return e.keys(Object(t)).map(function(e){return t[e]})}},"w")}),N(n)||(n="commonjs"==X?module:e),f(r=b(r,t,n),{ENV:X,global:{value:e},modes:{value:ot},bless:i,coerce:s,copy:o,cpdef:c,def:a,defs:f,describe:l,description:h,empty:d,exists:p,expose:b,format:y,got:S.bind(null,m),gsub:v,guid:w,has:S.bind(null,_),id:O,iter:N,len:M,merge:A,nativeType:U,noop:Y,ntype:U,obj:C,range:L,remove:T,tostr:I,type:z,update:W,valof:R,x:q},"w"),q(Object,Array,Boolean,Function)}(this,"m8");

0 comments on commit 4333702

Please sign in to comment.
Something went wrong with that request. Please try again.