3 ms·
>var html = "<option value='" + this.id + "'>" + this.get("title") + "</option>"; >This is such nonsense. Why did we put up with this? In CoffeeScript, you can
by scdc 15y ago
>var html = "<option value='" + this.id + "'>" + this.get("title") + "</option>";
>This is such nonsense. Why did we put up with this? In CoffeeScript, you can write:
>html = "<option value='#{@id}'>#{@get("title")}</option>"
I have to say, the first one is much easier for me to read and understand.