Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed issue with `m8.AMD` not being set as a boolean

  • Loading branch information...
commit 52c9a52cefc97891d3df000e29297279aaaf5d9c 1 parent 235be83
@constantology authored
Showing with 3 additions and 3 deletions.
  1. +1 −1  m8.js
  2. +1 −1  m8.min.js
  3. +1 −1  src/vars.js
View
2  m8.js
@@ -7,7 +7,7 @@
var __name__ = '__name__', __type__ = '__type__', __xid__ = '__xid__',
// it's a best guess as to whether the environment we're in is a browser, commonjs platform (like nodejs) or something else completely
- AMD = typeof define == 'function' && define.amd,
+ AMD = !!( typeof define == 'function' && define.amd ),
ENV = typeof module != 'undefined' && 'exports' in module && typeof require == 'function' ? 'commonjs' : typeof navigator != 'undefined' ? 'browser' : 'other',
OP = Object.prototype, UNDEF,
// this will be used by the bless method to check if a context root is a commonjs module or not.
View
2  m8.min.js
@@ -1 +1 @@
-!function(e,t,n){"use strict";function r(e){return e}function u(e,t){switch(K(e)){case"array":break;case"string":e=e.split(".");break;default:return i(t)}if(dt.test(e[0])&&(t=r,e.shift()),!e.length)return i(t);e[0].indexOf("^")||(t||"^"==e[0]?e.shift():e[0]=e[0].substring(1)),t=i(t);for(var n;n=e.shift();)t=t[n]||(t[n]=D());return t}function i(t){return"commonjs"==tt?t?k(t)?t.exports:t:module.exports:t||e}function o(e){var t,n=Number(e);return isNaN(n)?(t=e+"")in ut?ut[t]:e:n}function c(e,t,n){n=n===!0,t||(t=e,e=D());for(var r in t)!O(t,r)||n&&O(e,r)||(e[r]=t[r]);return e}function a(e,t,n){return n=n===!0,t||(t=e,e=D()),Object.getOwnPropertyNames(t).reduce(function(e,r){return n&&O(e,r)||f(e,r,h(t,r)),e},e)}function f(e,n,u){var i,o,c,a,f=mt.call(arguments,3),s=w(e,n);switch(K(f[0])){case"string":o=ft[f.shift()];break;case"object":o=f.shift();break;default:c=K(u),o="object"!=c&&s?h(e,n):null,!o||(o="function"==c?ft.cw:ft.cew)}return a=f.shift()===!0,i=f.shift()===!0,s&&!a?i&&Error(t+".def cannot overwrite existing property: "+n+", in item type: "+T(e)+"."):("object"!=c&&o&&(u=p(u,o)),(u.get||u.set)&&delete u.writable,Object.defineProperty(e,n,u)),r}function s(e,t,n){return et?("array"!=K(t)&&(n=t,t=[]),define(e,t,function(){return n}),r):void 0}function l(e,t,n,u,i){n||(n="cw");for(var o in t)!O(t,o)||f(e,o,t[o],n,u,i);return r}function p(e,t){return c("object"==K(e)?e:{value:e},"object"==K(t)?t:ft[(t+"").toLowerCase()]||ft.cew,!0)}function h(e,t){return Object.getOwnPropertyDescriptor(e,t)}function b(e){return!d(e)||!E(e)&&A(e)||!1}function d(e){return!(null===e||e===Q||"number"==typeof e&&isNaN(e))}function g(t,n,r){"string"!=typeof n&&t[X]&&(r=n,n=t[X]);var u,i=D();return i[X]=n,i[Y]="library","commonjs"==tt&&k(r)?r.exports=t:(r||(r=e),(u=r[n])&&A(u)?(u[n]=t,t=a(u,t)):f(r,n,p({value:t},"ew")),!et||r!==e||s(n,t)),l(t,i,"w",!0),t}function y(e){return e.name||e.displayName||((e+"").match(gt)||["",""])[1].trim()}function m(e){return x(e,Array.coerce(arguments,1))}function w(e,t){return t+""in Object(e)}function x(e,t,n){return(e+"").replace(n||ht,function(e,n){return t[n]||""})}function v(){return wt.replace(bt,j)}function j(e){var t=0|16*lt();return("x"==e?t:8|3&t).toString(16)}function O(e,t){return nt.hasOwnProperty.call(Object(e),t+"")}function N(e,t){return e?w(e,"id")&&!b(e.id)?e.id:e.id=_(t):_(t)}function _(e){return(e||at)+"-"+ ++ct}function k(e){if(null===rt)return!1;try{return e instanceof rt}catch(t){return!1}}function A(e){return w(e,"length")||"object"==K(e)}function E(e){return("length"in(e=Object(e))?e:Object.keys(e)).length}function P(e,t){var n;if(t)n=K(t);else switch(n=K(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(B,{source:t,target:e}).target;case"array":return e.length=t.length,t.reduce(S,e);default:return t}}function S(e,t,n){return e[n]=K(e[n])===K(t)?P(e[n],t):P(t),e}function B(e,t){return e.target[t]=K(e.target[t])===K(e.source[t])?P(e.target[t],e.source[t]):P(e.source[t]),e}function C(){}function D(e){var t=Object.create(null);return"object"==typeof e?c(t,e):t}function F(e,t,n){var r;if(n+="",arguments.length>3){for(n=mt.call(arguments,2);r=n.shift();)if(F(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(!F(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 M(e,t){t=Array.isArray(t)?t:mt.call(arguments,1);var n=Array.isArray(e)?R:$;return t.forEach(n,e),e}function R(e){var t=this.indexOf(e);t=~t?t:!isNaN(e)&&e in this?e:t,0>t||this.splice(t,1)}function $(e){delete this[e]}function q(e){return nt.toString.call(e)}function z(e){return nt.valueOf.call(e)}function I(e){return e==ot?ot:e==it||"nodelist"==e?it:e.indexOf("htm")||e.lastIndexOf("element")+7!==e.length?!1:"htmlelement"}function K(e){var t=q(e);return t in st?st[t]:st[t]=t.split(" ")[1].split("]")[0].replace(yt,"$1").toLowerCase()}function T(e){if(null===e||e===Q)return!1;var t=w(e,Y)?e[Y]:null===Object.getPrototypeOf(e)?"nullobject":Q;return"object"!==t?t:F(O,e,"configurable","enumerable","writable")&&O(e,"value")||F(O,e,"get","set")?"descriptor":t}function U(e,t){if(!t)return P(e);switch(K(t)){case"object":return Object.keys(t).reduce(W,{source:t,target:e}).target;case"array":return t.reduce(V,e);default:return e}}function V(e,t,n){return e[n]=w(e,n)?K(e[n])==K(t)?U(e[n],t):e[n]:P(t),e}function W(e,t){return e.target[t]=w(e.target,t)?K(e.target[t])==K(e.source[t])?U(e.target[t],e.source[t]):e.target[t]:P(e.source[t]),e}function G(){return mt.call(arguments).forEach(J),r}function H(e){e(this,r)}function J(e){w(e,Z)||f(e,Z,0,"w");var t=xt[e[X]||y(e)];t&&(t.slice(e[Z]).forEach(H,e),e[Z]=t.length)}"undefined"==typeof global?e:e=global;var Q,X="__name__",Y="__type__",Z="__xid__",et="function"==typeof define&&define.amd,tt="undefined"!=typeof module&&"exports"in module&&"function"==typeof require?"commonjs":"undefined"!=typeof navigator?"browser":"other",nt=Object.prototype,rt="commonjs"!=tt?null:require("module"),ut=[!1,0/0,null,!0,Q].reduce(function(e,t){return e[t+""]=t,e},D()),it="htmlcollection",ot="htmldocument",ct=999,at="anon",ft=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,u){function i(e){r[e]=r[u]}var o=e[u];return r[u]=t.reduce(function(e,t,r){return e[t]=n[u][r],e},D()),!o||(Array.isArray(o)?o.forEach(i):i(o)),r},D());return delete r[Q],r}(),st="Array Boolean Date Function Null Number Object RegExp String Undefined".split(" ").reduce(function(e,t){return e["[object "+t+"]"]=t.toLowerCase(),e},D()),lt=Math.random,pt=/global|window/i,ht=/\$?\{([^\}'"]+)\}/g,bt=/[xy]/g,dt=RegExp("^\\u005E?"+t),gt=/[\s\(]*function([^\(]+).*/,yt=/^[Ww]ebkit|[Mm]oz|O|[Mm]s|[Kk]html(.*)$/,mt=Array.prototype.slice,wt="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",xt={Array:[],Boolean:[],Date:[],Function:[],Number:[],Object:[],RegExp:[],String:[]};f(G,"cache",function(e,t){return"string"==typeof e||(e=e[X]||y(e)),xt[e]||(xt[e]=[]),xt[e].push(t),r},"w"),G.cache("Array",function(e){var t=e.prototype;f(e,"coerce",function(e,t,n){return w(e,"length")?(t="number"==T(t)?t>0?t:0:0,n="number"==T(n)?n>t?n:0>=n?e.length+n:t+n:e.length,mt.call(e,t,n)):[e]},"w"),l(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):Q})},pluck:function(e,n){return n=n===!0,t.reduce.call(this,function(t,r){var u=Object.value(r,e);return n&&!d(u)||t.push(u),t},[])}},"w")}),G.cache("Boolean",function(e){f(e,"coerce",function(e){switch(T(e)){case"boolean":return e;case"nan":case!1:return!1;case"number":case"string":return!(e in ut?!ut[e]:0===Number(e))}return!0},"w")}),G.cache("Function",function(e){function t(e){return!e||e in i}function n(){return""+this}function r(){return this}var u="__xname__",i={Anonymous:!0,anonymous:!0},o={mimic:function(e,t){var u=e.valueOf();return l(this,{displayName:t||y(u),toString:n.bind(u),valueOf:r.bind(u)},"c",!0),this}};o[X]={get:function(){if(!this[u]){var e=this.valueOf(),n=e!==this?t(e[X])?null:e[X]:null,r=n||y(this);!t(r)||t(this.displayName)||(r=this.displayName),f(this,u,r||"anonymous","w")}return this[u]}},l(e.prototype,o,"w"),f(e,"anon_list",{value:i},"w")}),G.cache("Object",function(e){f(e.prototype,Y,c({get:function(){var e,t=this,n=t.constructor,r=K(t),u=I(r)||(pt.test(r)?"global":!1);return u?u:"number"==r?isNaN(t)?"nan":"number":"object"==r&&"function"==typeof n&&"function"!=n[Y]?(e=(n[X]+"").toLowerCase(),e&&"anonymous"!=e?e:n[Y]||r):r}},ft.r)),f(e.prototype,"__proto__",{get:function(){return e.getPrototypeOf(this)}},"c"),l(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,u){return e=n.call(t,e,t[r],r,t,u)},r)},value:function(t,n){if(isNaN(n)){if(w(t,n))return t[n];if(~n.indexOf(".")){var r;for(n=n.split(".");(r=n.shift())&&(t=e.value(t,r))!==Q;);return t}}return b(t)?Q:d(t[n])?t[n]:"function"==typeof t.get?t.get(n):"function"==typeof t.getAttribute?t.getAttribute(n):Q},values:function(t){return e.keys(Object(t)).map(function(e){return t[e]})}},"w")}),A(n)||(n="commonjs"==tt?module:e),l(r=g(r,t,n),{AMD:et,ENV:tt,global:{value:e},modes:{value:ft},bless:u,coerce:o,copy:c,cpdef:a,def:f,defs:l,define:s,describe:p,description:h,empty:b,exists:d,expose:g,format:m,got:F.bind(null,w),gsub:x,guid:v,has:F.bind(null,O),id:N,iter:A,len:E,merge:P,nativeType:K,noop:C,ntype:K,obj:D,range:L,remove:M,tostr:q,type:T,update:U,valof:z,x:G},"w"),G(Object,Array,Boolean,Function)}(this,"m8");
+!function(e,t,n){"use strict";function r(e){return e}function u(e,t){switch(K(e)){case"array":break;case"string":e=e.split(".");break;default:return i(t)}if(dt.test(e[0])&&(t=r,e.shift()),!e.length)return i(t);e[0].indexOf("^")||(t||"^"==e[0]?e.shift():e[0]=e[0].substring(1)),t=i(t);for(var n;n=e.shift();)t=t[n]||(t[n]=D());return t}function i(t){return"commonjs"==tt?t?k(t)?t.exports:t:module.exports:t||e}function o(e){var t,n=Number(e);return isNaN(n)?(t=e+"")in ut?ut[t]:e:n}function c(e,t,n){n=n===!0,t||(t=e,e=D());for(var r in t)!O(t,r)||n&&O(e,r)||(e[r]=t[r]);return e}function a(e,t,n){return n=n===!0,t||(t=e,e=D()),Object.getOwnPropertyNames(t).reduce(function(e,r){return n&&O(e,r)||f(e,r,h(t,r)),e},e)}function f(e,n,u){var i,o,c,a,f=mt.call(arguments,3),s=w(e,n);switch(K(f[0])){case"string":o=ft[f.shift()];break;case"object":o=f.shift();break;default:c=K(u),o="object"!=c&&s?h(e,n):null,!o||(o="function"==c?ft.cw:ft.cew)}return a=f.shift()===!0,i=f.shift()===!0,s&&!a?i&&Error(t+".def cannot overwrite existing property: "+n+", in item type: "+T(e)+"."):("object"!=c&&o&&(u=p(u,o)),(u.get||u.set)&&delete u.writable,Object.defineProperty(e,n,u)),r}function s(e,t,n){return et?("array"!=K(t)&&(n=t,t=[]),define(e,t,function(){return n}),r):void 0}function l(e,t,n,u,i){n||(n="cw");for(var o in t)!O(t,o)||f(e,o,t[o],n,u,i);return r}function p(e,t){return c("object"==K(e)?e:{value:e},"object"==K(t)?t:ft[(t+"").toLowerCase()]||ft.cew,!0)}function h(e,t){return Object.getOwnPropertyDescriptor(e,t)}function b(e){return!d(e)||!E(e)&&A(e)||!1}function d(e){return!(null===e||e===Q||"number"==typeof e&&isNaN(e))}function g(t,n,r){"string"!=typeof n&&t[X]&&(r=n,n=t[X]);var u,i=D();return i[X]=n,i[Y]="library","commonjs"==tt&&k(r)?r.exports=t:(r||(r=e),(u=r[n])&&A(u)?(u[n]=t,t=a(u,t)):f(r,n,p({value:t},"ew")),!et||r!==e||s(n,t)),l(t,i,"w",!0),t}function y(e){return e.name||e.displayName||((e+"").match(gt)||["",""])[1].trim()}function m(e){return x(e,Array.coerce(arguments,1))}function w(e,t){return t+""in Object(e)}function x(e,t,n){return(e+"").replace(n||ht,function(e,n){return t[n]||""})}function v(){return wt.replace(bt,j)}function j(e){var t=0|16*lt();return("x"==e?t:8|3&t).toString(16)}function O(e,t){return nt.hasOwnProperty.call(Object(e),t+"")}function N(e,t){return e?w(e,"id")&&!b(e.id)?e.id:e.id=_(t):_(t)}function _(e){return(e||at)+"-"+ ++ct}function k(e){if(null===rt)return!1;try{return e instanceof rt}catch(t){return!1}}function A(e){return w(e,"length")||"object"==K(e)}function E(e){return("length"in(e=Object(e))?e:Object.keys(e)).length}function P(e,t){var n;if(t)n=K(t);else switch(n=K(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(B,{source:t,target:e}).target;case"array":return e.length=t.length,t.reduce(S,e);default:return t}}function S(e,t,n){return e[n]=K(e[n])===K(t)?P(e[n],t):P(t),e}function B(e,t){return e.target[t]=K(e.target[t])===K(e.source[t])?P(e.target[t],e.source[t]):P(e.source[t]),e}function C(){}function D(e){var t=Object.create(null);return"object"==typeof e?c(t,e):t}function F(e,t,n){var r;if(n+="",arguments.length>3){for(n=mt.call(arguments,2);r=n.shift();)if(F(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(!F(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 M(e,t){t=Array.isArray(t)?t:mt.call(arguments,1);var n=Array.isArray(e)?R:$;return t.forEach(n,e),e}function R(e){var t=this.indexOf(e);t=~t?t:!isNaN(e)&&e in this?e:t,0>t||this.splice(t,1)}function $(e){delete this[e]}function q(e){return nt.toString.call(e)}function z(e){return nt.valueOf.call(e)}function I(e){return e==ot?ot:e==it||"nodelist"==e?it:e.indexOf("htm")||e.lastIndexOf("element")+7!==e.length?!1:"htmlelement"}function K(e){var t=q(e);return t in st?st[t]:st[t]=t.split(" ")[1].split("]")[0].replace(yt,"$1").toLowerCase()}function T(e){if(null===e||e===Q)return!1;var t=w(e,Y)?e[Y]:null===Object.getPrototypeOf(e)?"nullobject":Q;return"object"!==t?t:F(O,e,"configurable","enumerable","writable")&&O(e,"value")||F(O,e,"get","set")?"descriptor":t}function U(e,t){if(!t)return P(e);switch(K(t)){case"object":return Object.keys(t).reduce(W,{source:t,target:e}).target;case"array":return t.reduce(V,e);default:return e}}function V(e,t,n){return e[n]=w(e,n)?K(e[n])==K(t)?U(e[n],t):e[n]:P(t),e}function W(e,t){return e.target[t]=w(e.target,t)?K(e.target[t])==K(e.source[t])?U(e.target[t],e.source[t]):e.target[t]:P(e.source[t]),e}function G(){return mt.call(arguments).forEach(J),r}function H(e){e(this,r)}function J(e){w(e,Z)||f(e,Z,0,"w");var t=xt[e[X]||y(e)];t&&(t.slice(e[Z]).forEach(H,e),e[Z]=t.length)}"undefined"==typeof global?e:e=global;var Q,X="__name__",Y="__type__",Z="__xid__",et=!("function"!=typeof define||!define.amd),tt="undefined"!=typeof module&&"exports"in module&&"function"==typeof require?"commonjs":"undefined"!=typeof navigator?"browser":"other",nt=Object.prototype,rt="commonjs"!=tt?null:require("module"),ut=[!1,0/0,null,!0,Q].reduce(function(e,t){return e[t+""]=t,e},D()),it="htmlcollection",ot="htmldocument",ct=999,at="anon",ft=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,u){function i(e){r[e]=r[u]}var o=e[u];return r[u]=t.reduce(function(e,t,r){return e[t]=n[u][r],e},D()),!o||(Array.isArray(o)?o.forEach(i):i(o)),r},D());return delete r[Q],r}(),st="Array Boolean Date Function Null Number Object RegExp String Undefined".split(" ").reduce(function(e,t){return e["[object "+t+"]"]=t.toLowerCase(),e},D()),lt=Math.random,pt=/global|window/i,ht=/\$?\{([^\}'"]+)\}/g,bt=/[xy]/g,dt=RegExp("^\\u005E?"+t),gt=/[\s\(]*function([^\(]+).*/,yt=/^[Ww]ebkit|[Mm]oz|O|[Mm]s|[Kk]html(.*)$/,mt=Array.prototype.slice,wt="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",xt={Array:[],Boolean:[],Date:[],Function:[],Number:[],Object:[],RegExp:[],String:[]};f(G,"cache",function(e,t){return"string"==typeof e||(e=e[X]||y(e)),xt[e]||(xt[e]=[]),xt[e].push(t),r},"w"),G.cache("Array",function(e){var t=e.prototype;f(e,"coerce",function(e,t,n){return w(e,"length")?(t="number"==T(t)?t>0?t:0:0,n="number"==T(n)?n>t?n:0>=n?e.length+n:t+n:e.length,mt.call(e,t,n)):[e]},"w"),l(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):Q})},pluck:function(e,n){return n=n===!0,t.reduce.call(this,function(t,r){var u=Object.value(r,e);return n&&!d(u)||t.push(u),t},[])}},"w")}),G.cache("Boolean",function(e){f(e,"coerce",function(e){switch(T(e)){case"boolean":return e;case"nan":case!1:return!1;case"number":case"string":return!(e in ut?!ut[e]:0===Number(e))}return!0},"w")}),G.cache("Function",function(e){function t(e){return!e||e in i}function n(){return""+this}function r(){return this}var u="__xname__",i={Anonymous:!0,anonymous:!0},o={mimic:function(e,t){var u=e.valueOf();return l(this,{displayName:t||y(u),toString:n.bind(u),valueOf:r.bind(u)},"c",!0),this}};o[X]={get:function(){if(!this[u]){var e=this.valueOf(),n=e!==this?t(e[X])?null:e[X]:null,r=n||y(this);!t(r)||t(this.displayName)||(r=this.displayName),f(this,u,r||"anonymous","w")}return this[u]}},l(e.prototype,o,"w"),f(e,"anon_list",{value:i},"w")}),G.cache("Object",function(e){f(e.prototype,Y,c({get:function(){var e,t=this,n=t.constructor,r=K(t),u=I(r)||(pt.test(r)?"global":!1);return u?u:"number"==r?isNaN(t)?"nan":"number":"object"==r&&"function"==typeof n&&"function"!=n[Y]?(e=(n[X]+"").toLowerCase(),e&&"anonymous"!=e?e:n[Y]||r):r}},ft.r)),f(e.prototype,"__proto__",{get:function(){return e.getPrototypeOf(this)}},"c"),l(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,u){return e=n.call(t,e,t[r],r,t,u)},r)},value:function(t,n){if(isNaN(n)){if(w(t,n))return t[n];if(~n.indexOf(".")){var r;for(n=n.split(".");(r=n.shift())&&(t=e.value(t,r))!==Q;);return t}}return b(t)?Q:d(t[n])?t[n]:"function"==typeof t.get?t.get(n):"function"==typeof t.getAttribute?t.getAttribute(n):Q},values:function(t){return e.keys(Object(t)).map(function(e){return t[e]})}},"w")}),A(n)||(n="commonjs"==tt?module:e),l(r=g(r,t,n),{AMD:et,ENV:tt,global:{value:e},modes:{value:ft},bless:u,coerce:o,copy:c,cpdef:a,def:f,defs:l,define:s,describe:p,description:h,empty:b,exists:d,expose:g,format:m,got:F.bind(null,w),gsub:x,guid:v,has:F.bind(null,O),id:N,iter:A,len:E,merge:P,nativeType:K,noop:C,ntype:K,obj:D,range:L,remove:M,tostr:q,type:T,update:U,valof:z,x:G},"w"),G(Object,Array,Boolean,Function)}(this,"m8");
View
2  src/vars.js
@@ -3,7 +3,7 @@
var __name__ = '__name__', __type__ = '__type__', __xid__ = '__xid__',
// it's a best guess as to whether the environment we're in is a browser, commonjs platform (like nodejs) or something else completely
- AMD = typeof define == 'function' && define.amd,
+ AMD = !!( typeof define == 'function' && define.amd ),
ENV = typeof module != 'undefined' && 'exports' in module && typeof require == 'function' ? 'commonjs' : typeof navigator != 'undefined' ? 'browser' : 'other',
OP = Object.prototype, UNDEF,
// this will be used by the bless method to check if a context root is a commonjs module or not.
Please sign in to comment.
Something went wrong with that request. Please try again.