Index: js/dependent.js
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/views/js/dependent.js,v
retrieving revision 1.7.2.5
diff -u -p -r1.7.2.5 dependent.js
--- js/dependent.js	15 Oct 2010 00:53:57 -0000	1.7.2.5
+++ js/dependent.js	20 Dec 2010 23:45:36 -0000
@@ -40,7 +40,7 @@ Drupal.Views.dependent.inArray = functio
 
 Drupal.Views.dependent.autoAttach = function() {
   // Clear active bindings and triggers.
-  for (i in Drupal.Views.dependent.activeTriggers) {
+  for (var i in Drupal.Views.dependent.activeTriggers) {
     jQuery(Drupal.Views.dependent.activeTriggers[i]).unbind('change');
   }
   Drupal.Views.dependent.activeTriggers = [];
@@ -52,13 +52,13 @@ Drupal.Views.dependent.autoAttach = func
   }
 
   // Iterate through all relationships
-  for (id in Drupal.settings.viewsAjax.formRelationships) {
+  for (var id in Drupal.settings.viewsAjax.formRelationships) {
 
     // Drupal.Views.dependent.activeBindings[id] is a boolean,
     // whether the binding is active or not.  Defaults to no.
     Drupal.Views.dependent.activeBindings[id] = 0;
     // Iterate through all possible values
-    for(bind_id in Drupal.settings.viewsAjax.formRelationships[id].values) {
+    for(var bind_id in Drupal.settings.viewsAjax.formRelationships[id].values) {
       // This creates a backward relationship.  The bind_id is the ID
       // of the element which needs to change in order for the id to hide or become shown.
       // The id is the ID of the item which will be conditionally hidden or shown.
@@ -114,7 +114,7 @@ Drupal.Views.dependent.autoAttach = func
         var changeTrigger = function() {
           var val = getValue(bind_id, trigger_id);
 
-          for (i in Drupal.Views.dependent.bindings[bind_id]) {
+          for (var i in Drupal.Views.dependent.bindings[bind_id]) {
             var id = Drupal.Views.dependent.bindings[bind_id][i];
 
             // Fix numerous errors
@@ -136,7 +136,7 @@ Drupal.Views.dependent.autoAttach = func
             }
 
             var len = 0;
-            for (i in Drupal.Views.dependent.activeBindings[id]) {
+            for (var i in Drupal.Views.dependent.activeBindings[id]) {
               len++;
             }
 
