Showing posts with label Anonymous Methods. Show all posts
Showing posts with label Anonymous Methods. Show all posts

Tuesday, August 12, 2008

You can do that in Javascript?

So found out yesterday that anonymous methods exist in javascript. Who knew?
 divToAdd.onmouseover = function() { picker.changeStyles(divToAdd, true); };
Where picker.changeStyles is a method on a class. Javascript is starting to grow on me.