Well, that's basics of javascript.

May you have variable `a`:
var a;

variable `a` can save any data, even function:
a = function(){};

a functions is something like callable object:
a(); // this is call of function
console.log(a.prototype); // this is property of the function object

you can create your own properties for the function:
a.myproperty = 'aloha';
console.log(a.myproperty);
a(); // function still works

there is special class Function (real type of the function)
var a = new Function(); // almost the same like:
var a = function(){};

the if you implement new properties into the Function, this properties
creates for all functions in the javascript code
so mootools creates property `periodical` for you, and saves there
function that helps you to call `getInterval` on a parent function:
var a = function();
a.periodical(1000);

something like that.. better to you to read good javascript books ;)


On Wed, Feb 29, 2012 at 3:36 PM, hamburger <[email protected]> wrote:
> thx Slik,
> I see that it is working now.
> But I do not understand ...
>
> why is the function call sometimes with () sometimes without?
>
>
>

Reply via email to