Hey Jarek,
Be very wary of this, as your namespace expando (e.g. the "ext" property
in there has a number of potential pitfalls:
* Any other script in place can overwrite it
* Your methods are bound to the expando, not the prototype. So their
binding (what "this" will mean inside them) is broken, making them
basically useless
* You have expandos referencing functions from your code, which MAY
reference elements from the closure. This could create a massive memory
leak issue as the page's lifetime increases (which happens more and more
in single-page applications relying heavily on JS).
JM2C,
--
Christophe Porteneuve
[email protected]
--
To view archived discussions from the original JSMentors Mailman list:
http://www.mail-archive.com/[email protected]/
To search via a non-Google archive, visit here:
http://www.mail-archive.com/[email protected]/
To unsubscribe from this group, send email to
[email protected]