PDA

View Full Version : Can I add an "After" order event using the control config in a controller.



badgerb1
9 May 2012, 10:34 AM
Hi Guys,

Here's what I'd like to do.

contol:{
'someSelector':{
tap:{
fn:'somefunction',
order:'after'
}
}
}

Doesn't currently work. it throws a "Uncaught TypeError: Object #<Object> has no method 'apply'" error because it's trying to use the entire object as a function. I'll probably just have to add the listener in the initialize function, but was wondering if there was another way.

Thanks
Bob

mitchellsimoens
11 May 2012, 6:42 AM
Unfortunately, currently the control config on the controller does not support event options like the after option.