Skip to content

Instantly share code, notes, and snippets.

@tim-smart
Forked from bnolan/gist:459435
Created July 1, 2010 01:50
Show Gist options
  • Save tim-smart/459440 to your computer and use it in GitHub Desktop.
Save tim-smart/459440 to your computer and use it in GitHub Desktop.
class Test
redraw: =>
for x in y
$('body').click =>
@widgify(x)
var Test;
Test = function() {
var _a;
_a = this;
this.redraw = function(){ return Test.prototype.redraw.apply(_a, arguments); };
return this;
};
Test.prototype.redraw = function() {
var _a, _b, _c, _d;
_a = []; _c = y;
for (_b = 0, _d = _c.length; _b < _d; _b++) {
(function() {
var x = _c[_b];
return _a.push($('body').click((function(__this) {
var __func = function() {
return this.widgify(x);
};
return (function() {
return __func.apply(__this, arguments);
});
})(this)));
})();
}
return _a;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment