summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--js/dependent.js6
2 files changed, 3 insertions, 4 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index fef28ac..640b833 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -32,6 +32,7 @@ Views 2.4
o #408414 by rb7: Prevent empty links with the "has new comments" field.
o #406680 by B√ľke Beyond: Missing clear-block caused problems in IE for Views UI.
o #373771 by dropcube: Fix missing aggregator feed trying to use non-existing handlers.
+ o #341960 by sun: Clean up dependent.js javascript declarations which potentially caused .js errors.
Other changes:
o #375182 by vaish: Allow a reset parameter to views_get_all_views().
diff --git a/js/dependent.js b/js/dependent.js
index ddf2fb6..25445fe 100644
--- a/js/dependent.js
+++ b/js/dependent.js
@@ -21,11 +21,9 @@
* override it.
*/
-Drupal.Views.dependent = {};
+Drupal.Views = Drupal.Views || {};
-Drupal.Views.dependent.bindings = {};
-Drupal.Views.dependent.activeBindings = {};
-Drupal.Views.dependent.activeTriggers = [];
+Drupal.Views.dependent = { bindings: {}, activeBindings: {}, activeTriggers: [] };
Drupal.Views.dependent.inArray = function(array, search_term) {
var i = array.length;