javascript - Run prototype.js in a no conflict mode -


i working on site using prototype. had embed pure js app page.

unfortunately, prototype library added 20 new methods array object-prototypes. bad because existing pure js app looping on arrays, , instead of getting strings of array keys, it's getting function definitions new methods.

like:

function clone() { return slice.call(this, 0);} (undefined%) 

is array key when iterate on it. know it's prototype because adds prototypes , thats why no 1 uses on jquery anymore.

how can fixed?!


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -