Another post for experimenting with JavaScript. This really started when I made my second Google Earth post and relized that my Google Earth object (named 'ge') was global. This caused a lot of strange behaviour when more than one blog-post was shown at the same time.
This post contains my soultion to this problem; I will put my variable and functions into an object for each post.
-- hello ? --
See also:
http://elegantcode.com/2011/01/19/basic-javascript-part-7-static-properties-and-methods/
The code:
No comments:
Post a Comment