-
-
Save tim-smart/459440 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Test | |
redraw: => | |
for x in y | |
$('body').click => | |
@widgify(x) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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