How can I call the original bind function of the function object with coffeescript? This is the example I am trying to get:
window.addEventListener ("load", function (e) {this._filter (true);} .bind (this) ;) Add some brackets around the function so that you can .bind
True thing: window.addEventListener ('load', ((e) -> gt; this._filters (true)) stop (this)) This will normally use the basic code instead of the var _this = this trailer, which is the value of the coffee script's = & gt; uses
No comments:
Post a Comment