Closed (works as designed)
Project:
jQuery Compatibility Mode
Version:
6.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Aug 2009 at 12:52 UTC
Updated:
11 Nov 2009 at 16:39 UTC
We have case for use mode like
if (after('Drupal.', $contents, FALSE) && (after('$(', $contents)) && !after('(function($)', $contents, FALSE) && !after('var run_through_jquery_compatibility_mode = FALSE;', $contents, FALSE)) {
return TRUE;
}
It means that file must contatins Drupal. and $(.
Suggest to use
if ((after('Drupal.', $contents, FALSE) || after('$(', $contents)) && !after('(function($)', $contents, FALSE) && !after('var run_through_jquery_compatibility_mode = FALSE;', $contents, FALSE)) {
return TRUE;
}
Here is a patch.
Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| jquery_compatibility.patch | 944 bytes | igor.ro |
Comments
Comment #1
igor.ro commentedComment #2
crystaldawn commentedThe reason it requires drupal and $( is because not all files that have $( are drupal jquery files. And since this module is meant only for those that have to deal with drupal, I have required the word drupal to be in it. I couldnt think of any situation where the two would never both be present. What is your use case where only $( was available?