maqetta/maqetta — Issue #1766: Do not use Function.bind(), not supported by Safari
Author: jhpedemonte
Created: 2012-02-17 16:31:17+00:00
State: open
Labels: Bug, Priority High

We cannot use `Function.prototype.bind()`, it is not supported in Safari. See http://kangax.github.com/es5-compat-table/.

Two options:

1. Replace with calls to `dojo.hitch`.
2. Use a polyfill to implement `bind()` on browsers that don't have it. For example, there's one at [Devmo](https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Function/bind), under "Compatibility".