summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/drupal.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/misc/drupal.js b/misc/drupal.js
index 50498d873..d92302152 100644
--- a/misc/drupal.js
+++ b/misc/drupal.js
@@ -36,12 +36,10 @@ Drupal.jsEnabled = document.getElementsByTagName && document.createElement && do
*/
Drupal.attachBehaviors = function(context) {
context = context || document;
- if (Drupal.jsEnabled) {
- // Execute all of them.
- jQuery.each(Drupal.behaviors, function() {
- this(context);
- });
- }
+ // Execute all of them.
+ jQuery.each(Drupal.behaviors, function() {
+ this(context);
+ });
};
/**