Open that1guy opened 10 years ago
That initial code has a typo, just fyi.
{
name: 'layout',
params: instance.elements[0],
function(){} // this function has no paramater, so it will break the object
}
{
name: 'layout',
params: instance.elements[0],
function: function(){} // this would be a proper object
// using the word function as an attribute is bad form in JS last I checked
}
gives me error:
If I just don't pass in a callback function I get error:
thanks for help.