Ver Mensaje Individual
  #33 (permalink)  
Antiguo 22/04/2008, 09:13
Avatar de Calisco
Calisco
 
Fecha de Ingreso: marzo-2004
Ubicación: Neuquen
Mensajes: 732
Antigüedad: 20 años, 10 meses
Puntos: 4
Re: Me conviene usar eval aca ?

Creo que estas equivocado.
Cita:
indexOf
This method is provided only for browsers without native indexOf support. For more info see http://developer.mozilla.org- /en- /docs- /Core_JavaScript_1.5_Reference:Global_Objects:Array :indexOf

indexOf compares a search element to elements of the Array using strict equality (the same method used by the ===, or triple-equals, operator).
Link indexOf de MooTools


Dice que el método indexOf sólo para aquellos exploradores que no lo soportan forma nativa. Lo hace con el uso de la función $native del core de mootools:
Cita:
var $native = function()
Will add a .extend method to the objects passed as a parameter, but the property passed in will be copied to the object’s prototype only if non previously existent. Its handy if you dont want the .extend method of an object to overwrite existing methods. Used automatically in MooTools to implement Array/String/Function/Number methods to browser that dont support them whitout manual checking.
Link de $native
Used automatically in MooTools to implement Array/String/Function/Number methods to browser that dont support them whitout manual checking.

... failure connection ...
__________________
| Cabeza De Raton |

Última edición por Calisco; 22/04/2008 a las 10:50