- Patch #225527 by dvessel: removed jsEnabled check.

merge-requests/26/head
Dries Buytaert 2008-05-19 19:42:18 +00:00
parent d673f5e10f
commit 9f09788e3b
1 changed files with 4 additions and 6 deletions

View File

@ -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);
});
};
/**