Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
28
gaia/apps/email/js/ext/shim-sham.js
Executable file
28
gaia/apps/email/js/ext/shim-sham.js
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
/**
|
||||
* Do the required global namespace clobbering for our node binding friends.
|
||||
**/
|
||||
|
||||
(function () {
|
||||
|
||||
// Like setTimeout, but only takes a function argument. There's
|
||||
// no time argument (always zero) and no arguments (you have to
|
||||
// use a closure).
|
||||
function setZeroTimeout(fn) {
|
||||
setTimeout(fn);
|
||||
}
|
||||
|
||||
// Add the one thing we want added to the window object.
|
||||
window.setZeroTimeout = setZeroTimeout;
|
||||
|
||||
window.process = {
|
||||
immediate: false,
|
||||
nextTick: function(cb) {
|
||||
if (this.immediate)
|
||||
cb();
|
||||
else
|
||||
window.setZeroTimeout(cb);
|
||||
}
|
||||
};
|
||||
|
||||
}());
|
||||
|
||||
Loading…
Reference in a new issue