mardi 3 mars 2015

i am unable to understand this code.can anyone explain this to me?


please see this code



var sse2 = function()
{
var var1;
var var2;
return
{
buildmenu:function()
{
}
move:function()
{
}
}
}


This code is for horizontal menu.In this code i am unable to understand the following two things



(1) can we define an object as shown below
var sse2 = function()
{
}
(2) what is doing with this following stament
return
{
buildmenu:function()
{
}
move:function()
{
}
}


can anyone explain this code





Aucun commentaire:

Enregistrer un commentaire