On Sun, Feb 20, 2011 at 1:35 PM, Baris Bikmaz <[email protected]> wrote: > [...] And I prefer not to write the properties again after checking them so a > quite similar approach were to write a method > like that: Object.prototype.hasCustomProperty = function( sProperty ) { [...] > }
It works until you start using any kind of third party code, in which case you probably break them. http://stackoverflow.com/questions/5056306/jquery-extending-object-prototype-c-replace-is-not-a-function/ - Balázs -- 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]
