Hi. I'm new to javascript and I am looking through some Raphael demo code. I'm confused by how this is working...
if (R) {
(function (dx, dy, R, value) {
var color = "hsb(" + [(1 - R / max) * .5, 1, .75] + ")";
...
From what I can see this is declaring an anonymous function which takes 4 arguments. How is this function invoked when this function doesn't have a name??
Demo page.. http://raphaeljs.com/github/dots.html
JS file.. http://raphaeljs.com/github/dots.js