Commit d67ed98e authored by Dries's avatar Dries

- Patch #1542676 by xjm: Fixed FAPI #states scope issue in Dependent prototype.

parent 4071fb8b
......@@ -108,8 +108,8 @@ states.Dependent.prototype = {
this.values[selector][state.name] = null;
// Monitor state changes of the specified state for this dependee.
$(selector).bind('state:' + state, $.proxy(function (e) {
this.update(selector, state, e.value);
$(selector).bind('state:' + state, {selector: selector, state: state}, $.proxy(function (e) {
this.update(e.data.selector, e.data.state, e.value);
}, this));
// Make sure the event we just bound ourselves to is actually fired.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment