// Continue in a callback, so that there's not a stale download
// link hanging around while we process.
- setTimeout(function(the_this) { (function() {
+ setTimeout(function() {
// Get params from form
var params = [];
this.ui.appendChild(download_link);
setTimeout(function() { download_link.setAttribute("style", "-webkit-transition: background-color 0.4s; -moz-transition: background-color 0.4s; -o-transition: background-color 0.4s; -ms-transition: background-color 0.4s; transition: background-color 0.4s; background-color: inherit"); }, 0);
- }).call(the_this); }, 0, this); // (We were in a callback this whole time, remember?)
+ }.bind(this), 0); // (We were in a callback this whole time, remember?)
},
framework: function (f, params) {
this.user_function = f;