From 41d1408a35a8a57653ce3169f1cefdd313337bed Mon Sep 17 00:00:00 2001
From: boombatower <jimmy@boombatower.com>
Date: Fri, 22 Jun 2012 18:15:56 -0500
Subject: Patch #1542676 by xjm: Fixed FAPI #states scope issue in Dependent
 prototype.

---
 misc/states.js |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/misc/states.js b/misc/states.js
index 00eeba1..605e521 100644
--- a/misc/states.js
+++ b/misc/states.js
@@ -105,8 +105,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.
-- 
1.7.10.4

