diff --git a/ciform/trunk/src/minilib.js b/ciform/trunk/src/minilib.js index c63ddd4..12667a4 100644 --- a/ciform/trunk/src/minilib.js +++ b/ciform/trunk/src/minilib.js @@ -2,7 +2,7 @@ @fileoverview This library provides a very minimalistic set of functions to fill some gaps in the core Javascript language.
- It should be compatible with most current market's libraries, so that if size would not be a problem it could easily be replaced/enhanced with one of them.
+ It should be compatible with most current market's libraries, so that if size would not be a problem it should easily be replaced/enhanced with one of them.
@author cbonar at users dot sf dot net */ @@ -90,24 +90,13 @@ function equals( o1, o2, noCase ) -/** - @see #equals - @type boolean -*/ -function equalsNoCase( o1, o2 ) -{ - return equals(o1,o2,true); -} - - - /** @param noCase If the value is a String, use a case insensitive test to search this object @return true if this array contains the given value (not key) @addon @type boolean */ -Array.prototype.contains = function( value, noCase ) +Array.prototype.containsValue = function( value, noCase ) { var notCaseSensitive = noCase ? true : false; @@ -120,16 +109,3 @@ Array.prototype.contains = function( value, noCase ) return false; } - - -/** - @see Array#contains - @see #equalsNoCase - @addon - @type boolean -*/ -Array.prototype.containsNoCase = function( value ) -{ - return this.contains(value,true); -} -