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

MySql variables and php -

url rewriting - How to implement the returnurl like SO in PHP? -

Which Python client library should I use for CouchdB? -