1. Computing & Technology

Create Method if Doesn't Exist

From Stephen Chapman, About.com GuideMay 11, 2011

Some methods are so obviously useful that browsers add native support for them. One thing we need to cater for if we are adding methods to the built in JavaScript objects is that the methods we are adding may eventually be supported as built in methods by some browsers. Where this happens we may want to check whether the browser already has the method before we add our own version.

Create Method if Doesn't Exist

Comments
No comments yet.  Leave a Comment
Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

©2012 About.com. All rights reserved.

A part of The New York Times Company.