Skip to content

Commit

Permalink
3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tbarbugli committed Jun 27, 2016
1 parent dde1a9c commit 185d81b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 33 deletions.
34 changes: 3 additions & 31 deletions dist/js/getstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,40 +115,12 @@ return /******/ (function(modules) { // webpackBootstrap
// shim for using process in browser

var process = module.exports = {};

// cached from whatever global is present so that test runners that stub it
// don't break things. But we need to wrap it in a try catch in case it is
// wrapped in strict mode code which doesn't define any globals. It's inside a
// function because try/catches deoptimize in certain engines.

var cachedSetTimeout;
var cachedClearTimeout;

(function () {
try {
cachedSetTimeout = setTimeout;
} catch (e) {
cachedSetTimeout = function () {
throw new Error('setTimeout is not defined');
}
}
try {
cachedClearTimeout = clearTimeout;
} catch (e) {
cachedClearTimeout = function () {
throw new Error('clearTimeout is not defined');
}
}
} ())
var queue = [];
var draining = false;
var currentQueue;
var queueIndex = -1;

function cleanUpNextTick() {
if (!draining || !currentQueue) {
return;
}
draining = false;
if (currentQueue.length) {
queue = currentQueue.concat(queue);
Expand All @@ -164,7 +136,7 @@ return /******/ (function(modules) { // webpackBootstrap
if (draining) {
return;
}
var timeout = cachedSetTimeout(cleanUpNextTick);
var timeout = setTimeout(cleanUpNextTick);
draining = true;

var len = queue.length;
Expand All @@ -181,7 +153,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
currentQueue = null;
draining = false;
cachedClearTimeout(timeout);
clearTimeout(timeout);
}

process.nextTick = function (fun) {
Expand All @@ -193,7 +165,7 @@ return /******/ (function(modules) { // webpackBootstrap
}
queue.push(new Item(fun, args));
if (queue.length === 1 && !draining) {
cachedSetTimeout(drainQueue, 0);
setTimeout(drainQueue, 0);
}
};

Expand Down
Loading

0 comments on commit 185d81b

Please sign in to comment.