We have found several ProtoTyped Javascript objects in the AjaxPro
generated javascript that break our javascript objects. The biggest one
is adding functions like clear() to the built in Array object as well
as several others using Prototype. We extended the default Array object
to simulate a Hash table. A method added with Prototype like clear
actually adds itself to the Array items collection without using a
putItem due to the way JS places this new function on the object.
We don't use prototype on builtin javascript objects as this is bad
coding practice in our opinion.
Your can extend javascript objects without using prototype and
therefore not break other uses of the same builtin object. Is there
anyway this can be changed?
The way we need it
ie. var myArray = new array()
myArray.clear = new function().......etc
not this way
Array.prototype.clear = ......etc
Any Array objected created on the page gets all the AjaxPro extensions
to the Array
object whether they like it or not.
thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---