Category:Scripting context: Difference between revisions

From GreaseSpot Wiki
Jump to navigationJump to search
m (Reverted edits by 88.134.124.159 (Talk) to last revision by Arantius)
(Hapus Wall)
Line 1: Line 1:
Defaulted to using jQuery 1.3.2 because of a change in browser
sniffing code in jQuery 1.4 is not compatible with Greasemonkey (?)
without some modifications, see below on getting jQuery 1.4 to work:


Edits
  jquery-1.4.1.min.js:
    [old]  36: var o=r.createElement("div");n="on"+n;var m=n in o;
    [new]  36: var o=r.createElement("div");n="on"+n;var m=true;
  jquery-1.4.1.js
    [old] 934: var isSupported = (eventName in el);
    [old] 934: var isSupported = true;
Comment out commented code (1.3 <-> 1.4) and reload.

Revision as of 13:27, 17 December 2010

Defaulted to using jQuery 1.3.2 because of a change in browser sniffing code in jQuery 1.4 is not compatible with Greasemonkey (?) without some modifications, see below on getting jQuery 1.4 to work:

Edits

 jquery-1.4.1.min.js:
   [old]  36: var o=r.createElement("div");n="on"+n;var m=n in o;
   [new]  36: var o=r.createElement("div");n="on"+n;var m=true;
 jquery-1.4.1.js
   [old] 934: var isSupported = (eventName in el); 
   [old] 934: var isSupported = true;

Comment out commented code (1.3 <-> 1.4) and reload.

Pages in category "Scripting context"

The following 4 pages are in this category, out of 4 total.