Last active

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

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

View iced-runtime.js
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);
Owner

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

Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.