public
Last active

IcedCoffeeScript window-scoped runtime, generated with `iced -I window -F -p -e '' > iced-runtime.js`.

  • Download Gist
iced-runtime.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
(function() {
var __slice = [].slice;
 
window.iced = {
Deferrals: (function() {
function _Class(_arg) {
this.continuation = _arg;
this.count = 1;
this.ret = null;
}
 
_Class.prototype._fulfill = function() {
if (!--this.count) {
return this.continuation(this.ret);
}
};
 
_Class.prototype.defer = function(defer_params) {
var _this = this;
++this.count;
return function() {
var inner_params, _ref;
inner_params = 1 <= arguments.length ? __slice.call(arguments, 0) : [];
if (defer_params != null) {
if ((_ref = defer_params.assign_fn) != null) {
_ref.apply(null, inner_params);
}
}
return _this._fulfill();
};
};
 
return _Class;
 
})(),
findDeferral: function() {
return null;
},
trampoline: function(_fn) {
return _fn();
}
};
 
}).call(this);

iced -I window -F -p -e '' > iced-runtime.js no longer works for IcedCoffeeScript > 1.4.0c.

Thanks to Max's quick fix, iced -I window -F -p -e '' > iced-runtime.js works again in IcedCoffeeScript > 1.6.2d.

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.