diff --git a/dist/immediate.js b/dist/immediate.js index c5d5666..996997c 100644 --- a/dist/immediate.js +++ b/dist/immediate.js @@ -1,4 +1,5 @@ (function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.immediate = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i element; its readystatechange event will be fired asynchronously once it is inserted // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called. - var scriptEl = global.document.createElement('script'); + var scriptEl = globalObject.document.createElement('script'); scriptEl.onreadystatechange = function () { handle(); @@ -178,12 +190,11 @@ exports.install = function (handle) { scriptEl.parentNode.removeChild(scriptEl); scriptEl = null; }; - global.document.documentElement.appendChild(scriptEl); + globalObject.document.documentElement.appendChild(scriptEl); return handle; }; }; -}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {}) },{}],6:[function(_dereq_,module,exports){ 'use strict'; exports.test = function () { diff --git a/dist/immediate.min.js b/dist/immediate.min.js index 9d07554..7f8f960 100644 --- a/dist/immediate.min.js +++ b/dist/immediate.min.js @@ -1 +1 @@ -!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;n="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,n.immediate=e()}}(function(){return function(){function e(n,t,o){function i(r,f){if(!t[r]){if(!n[r]){var a="function"==typeof require&&require;if(!f&&a)return a(r,!0);if(u)return u(r,!0);var s=new Error("Cannot find module '"+r+"'");throw s.code="MODULE_NOT_FOUND",s}var l=t[r]={exports:{}};n[r][0].call(l.exports,function(e){return i(n[r][1][e]||e)},l,l.exports,e,n,t,o)}return t[r].exports}for(var u="function"==typeof require&&require,r=0;r1)for(var t=1;t1)for(var n=1;n element; its readystatechange event will be fired asynchronously once it is inserted // into the document. Do so, thus queuing up the task. Remember to clean up once it's been called. - var scriptEl = global.document.createElement('script'); + var scriptEl = globalObject.document.createElement('script'); scriptEl.onreadystatechange = function () { handle(); @@ -17,7 +17,7 @@ exports.install = function (handle) { scriptEl.parentNode.removeChild(scriptEl); scriptEl = null; }; - global.document.documentElement.appendChild(scriptEl); + globalObject.document.documentElement.appendChild(scriptEl); return handle; };