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
Post a Comment