[
David Spades wrote:1. IE<8 ...
2. method name collision, okay, this one is a little bit valid, but then again, if I prefix my methods with "my", pretty sure browser's developers won't create such name for their method right?
or are there any other reasons why we shouldn't extend native elements in 2014?
David Spades wrote:can you show me how to extend native object (adding method) with namespace?
I meant that is there any other con as to why we shouldn't extend native object directly?
David Spades wrote:best practices to do this using JS. anyone know any good book?
Bear Bibeault wrote:Limits the incursion into the global namespace to bear, the "module" name.
A more advanced approach using immediate functions.
David Spades wrote:so, jquery way is the preferred way? thanks