Changeset 1249 for trunk/modules/GetHtml


Ignore:
Timestamp:
03/17/10 16:40:55 (10 years ago)
Author:
wymsy
Message:

ticket #1509: prevent attempting to compress REs in Safari 4

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/GetHtml/TransformInnerHTML.js

    r1236 r1249  
    6060]; 
    6161// compile for performance; WebKit doesn't support this 
    62 if (typeof RegExp.prototype.compile == 'function') { 
     62var testRE = new RegExp().compile(Xinha.RegExpCache[3]); 
     63if (typeof testRE != 'undefined') { 
    6364        for (var i=0; i<Xinha.RegExpCache.length;i++ ) { 
    6465                Xinha.RegExpCache[i] = new RegExp().compile(Xinha.RegExpCache[i]); 
Note: See TracChangeset for help on using the changeset viewer.