prototypejs - Jquery + Prototype in noConflict() mode, Array.prototype.indexOf broken -


I'm trying this jquery plugin

This works fine but with prototype + Jquery noConflict mode breaks other scripts in this function

  array.protipip.indexoff = function (for obje, start) {var i = (start || 0); i & Lt; this.length; i ++) {if (this [i] == obg] {come back; }}};  

Any help?

see

Array already has a native index. Changing in a manner that does not produce similar results, things will break things, even trying to change an original method can also cause problems for such methods.

If you really want that function, rename it to myIndexOf or to avoid conflict.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -