-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding handlers and events to router #56
Comments
This is in continuation to the above question.I am trying to implement a wrapper over the jqmRouter for my application
RouteController = RouteController.extend({ However the event doesn't seem to be firing and there is no error on my console too. How can i check if the event has been added to JQM router with out any issue. |
Hi, var eventAndMethod = {}, eventAndMethod2 = {}; jqmRouterInstance.add([eventAndMethod, eventAndMethod2], handlerObj); If you still have problems with your code, please write again and I'll dig some more into your code. Cheers, |
Hi, can we add the events and the handler objects like the below
var eventsAndMethods = {};
eventsAndMethods.test = {};
eventsAndMethods.events = "bs";
eventsAndMethods.handler = "showIndexPage"; // This method will be available in the handlerObj
jqmRouterInstance.add([eventsAndMethods], handlerObj);
The text was updated successfully, but these errors were encountered: