Changeset 1132 for trunk


Ignore:
Timestamp:
11/25/08 16:33:20 (10 years ago)
Author:
douglas
Message:

UPDATED Ticket #1338 Duh, an HTMLCollection can't be sliced on IE. THis version is cleaner to read, anyway, even if it requires storing an extra reference...

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/XinhaLoader.js

    r1128 r1132  
    44if (!window._editor_url) { 
    55  // Because of the way the DOM is loaded, this is guaranteed to always pull our script tag. 
    6   var this_script = Array.prototype.slice.call(document.getElementsByTagName('script'),-1)[0]; 
     6  var scripts = document.getElementsByTagName('script'); 
     7  var this_script = scripts[scripts.length-1]; 
    78 
    89  // We'll allow two ways to specify arguments.  We'll accept them in the 
Note: See TracChangeset for help on using the changeset viewer.