From a66e3a8afb63d472b3ec92a406538dfc0a492efb Mon Sep 17 00:00:00 2001 From: xue <> Date: Fri, 14 Apr 2006 12:55:01 +0000 Subject: merge from branch 3.0 till 908. --- framework/Web/Javascripts/prototype/array.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'framework/Web/Javascripts/prototype') diff --git a/framework/Web/Javascripts/prototype/array.js b/framework/Web/Javascripts/prototype/array.js index d23596cb..51ad864b 100644 --- a/framework/Web/Javascripts/prototype/array.js +++ b/framework/Web/Javascripts/prototype/array.js @@ -12,7 +12,7 @@ var $A = Array.from = function(iterable) { Object.extend(Array.prototype, Enumerable); -Array.prototype._reverse = Array.prototype.reverse; +//Array.prototype._reverse = Array.prototype.reverse; Object.extend(Array.prototype, { _each: function(iterator) { @@ -58,11 +58,12 @@ Object.extend(Array.prototype, { if (this[i] == object) return i; return -1; }, - + +/* reverse: function(inline) { return (inline !== false ? this : this.toArray())._reverse(); }, - +*/ shift: function() { var result = this[0]; for (var i = 0; i < this.length - 1; i++) -- cgit v1.2.3