0

I have two controllers, init:

jQuery.Controller.extend('App.Controllers.Init', {  
    onDocument: true  

},{  
    load: function() {  
        //call App.Controllers.Tabs on $('#tabs')  
        //it is not that easy as $('#tabs').tabs() -> Throws: Object doesn't support this property or method  
    }
});

And tabs:

jQuery.Controller.extend('App.Controllers.Tabs,...

How to call tabs in init?

1
  • Quick note: Use 4 spaces for a code block, and outside of that 2 trailing spaces for a line break :) Commented Jan 7, 2011 at 8:29

1 Answer 1

1

You need to:
$('#tabs').app_tabs()
Just cut the "controller" word out. Make all letters lowercase, and change dots "." to "_"

One More Example:
controller definition:
jQuery.Controller.extend('Appname.Controllers.Controllername',...
call it:
$('#some_id').appname_controllername();

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.