From 5bb223e89cda76da136bf8ddd4b225f45cd433e2 Mon, 23 Apr 2012 17:13:40 -0500
From: Gitesh Koli <gitesh.koli@verizonwireless.com>
Date: Mon, 23 Apr 2012 17:13:03 -0500
Subject: [PATCH] creating a d8 patch 

diff --git a/core/misc/form.js b/core/misc/form.js
index 4dc5b8c..92230d8 100644
--- a/core/misc/form.js
+++ b/core/misc/form.js
@@ -45,15 +45,11 @@
   attach: function (context) {
     // These events are namespaced so that we can remove them later.
     var events = 'change.formUpdated click.formUpdated blur.formUpdated keyup.formUpdated';
-    $(context)
-      // Since context could be an input element itself, it's added back to
-      // the jQuery object and filtered again.
-      .find(':input').andSelf().filter(':input')
-      // To prevent duplicate events, the handlers are first removed and then
-      // (re-)added.
-      .unbind(events).bind(events, function () {
+    $(context).off(events, ':input');
+    $(context).on(events, ':input', function () {
         $(this).trigger('formUpdated');
-      });
+      }
+    );
   }
 };
