Author: vmolotkov
Date: 2007-11-06 15:12:16 -0500 (Tue, 06 Nov 2007)
New Revision: 3808
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
Log:
fixed bug for IE
Modified:
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js
===================================================================
---
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-06
19:51:39 UTC (rev 3807)
+++
trunk/sandbox/ui/orderingList/src/main/resources/org/richfaces/renderkit/html/scripts/OrderingList.js 2007-11-06
20:12:16 UTC (rev 3808)
@@ -1,5 +1,14 @@
Array.prototype.remove = function(object) {
-
+ if (!this.indexOf) {
+ this.indexOf = function(obj){
+ for(var i=0; i < this.length; i++){
+ if(this[i]==obj){
+ return i;
+ }
+ }
+ return -1;
+ }
+ }
var index = this.indexOf(object, 0, this.length);
if (index == 0) {
this.shift();