I have a javascript object menu
, and I want to add a property controller
which should be a constructor. However, the following gives a syntax error:
class menu.foobar {
// stuff here
}
What is the right way to do this?
I have a javascript object menu
, and I want to add a property controller
which should be a constructor. However, the following gives a syntax error:
class menu.foobar {
// stuff here
}
What is the right way to do this?