Changeset 1249

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

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

Files:
1 modified

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]);