Skip to main content

name for listener in glue must start with jmaki?

1 reply [Last post]
bbissett
Offline
Joined: 2003-06-16
Points: 0

Hi,

I was trying to glue some custom comonents together and was getting publish errors like this:
"function myListener not found on object foo.listeners"

I could only get it to work if I called the listener function jmaki.listeners.myListener instead of foo.listeners.myListener. The document introGlue.html says that this namespace isn't required.

Is this a bug that it wouldn't work with "foo," or am I missing something where I need to declare what foo is?

Thanks,
Bobby

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
bbissett
Offline
Joined: 2003-06-16
Points: 0

Sigh. "declare what foo is" reminded me of namespace declarations, and adding the following to my glue.js fixed the problem:

jmaki.namespace("foo.listeners");