- Timestamp:
- 07/26/10 16:33:12 (19 months ago)
- Location:
- plugins/apostrophePlugin/branches/features/css
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
web/js/aControls.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
plugins/apostrophePlugin/branches/features/css
- Property svn:mergeinfo changed
/plugins/apostrophePlugin/branches/1.4 merged: 1840 /plugins/apostrophePlugin/trunk merged: 1820,1823,1826,1833-1834,1836,1841,1848
- Property svn:mergeinfo changed
-
plugins/apostrophePlugin/branches/features/css/web/js/aControls.js
r1818 r1849 1 // This adds support for indexOF to browsers that are missing this functionality (IE) 2 // https://developer.mozilla.org/En/Core_JavaScript_1.5_Reference:Objects:Array:indexOf#Compatibility 3 if (!Array.prototype.indexOf) 4 { 5 Array.prototype.indexOf = function(elt /*, from*/) 6 { 7 var len = this.length >>> 0; 8 9 var from = Number(arguments[1]) || 0; 10 from = (from < 0) 11 ? Math.ceil(from) 12 : Math.floor(from); 13 if (from < 0) 14 from += len; 15 16 for (; from < len; from++) 17 { 18 if (from in this && 19 this[from] === elt) 20 return from; 21 } 22 return -1; 23 }; 24 } 25 1 26 // Copyright 2009 P'unk Avenue LLC. Released under the MIT license. 2 27 // See http://www.symfony-project.org/plugins/apostrophePlugin and

