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.
Sometimes it's hard being this awesome... Just kidding, if it were hard I wouldn't be awesome.
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.