Skip to content
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

init() never called on superclass #19

Closed
jachenry opened this issue May 28, 2012 · 5 comments
Closed

init() never called on superclass #19

jachenry opened this issue May 28, 2012 · 5 comments

Comments

@jachenry
Copy link

Ext.define( 'App.controller.AbstractViewController', {
  extend: 'Deft.mvc.ViewController',  

  init: function(){
    //never called
    return this.callParent( arguments ); 
  }
});

Ext.define( 'App.controller.ConcreteViewController', {
  extend: 'App.controller.AbstractViewController',  

  init: function(){
    //called
    return this.callParent( arguments ); 
  }
});

@johnyanarella
Copy link
Member

I wasn't able to recreate this with Ext JS.

See:

http://jsfiddle.net/CodeCatalyst/A8V5C/1/

I see what I'd expect in the Chrome / Safari developer tools console:

ConcreteViewController::init()
AbstractViewController::init()

Are you using Ext JS or Sencha Touch? What version?

@jachenry
Copy link
Author

Sencha touch 2.0.1 final

On May 29, 2012, at 6:43 AM, John Yanarella
reply@reply.github.com
wrote:

I wasn't able to recreate this with Ext JS.

See:

http://jsfiddle.net/CodeCatalyst/A8V5C/1/

I see what I'd expect in the Chrome / Safari developer tools console:

ConcreteViewController::init()
AbstractViewController::init()

Are you using Ext JS or Sencha Touch? What version?


Reply to this email directly or view it on GitHub:
#19 (comment)

@johnyanarella
Copy link
Member

Seems to be working for Sencha Touch 2.0.1, too.

http://jsfiddle.net/CodeCatalyst/Ja7Le/6/

I get:

ConcreteViewController::init()
AbstractViewController::init()

@jachenry
Copy link
Author

Ok. Thank you for looking into this. I'll double check my code.

On Tue, May 29, 2012 at 9:29 AM, John Yanarella <
reply@reply.github.com

wrote:

Seems to be working for Sencha Touch 2.0.1, too.


http://jsfiddle.net/CodeCatalyst/Ja7Le/6/

I get:

ConcreteViewController::init()
AbstractViewController::init()


Reply to this email directly or view it on GitHub:
#19 (comment)

@johnyanarella
Copy link
Member

No problem. Let us know if you find the culprit - if it's our bug feel free to post here again and we'll reopen the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants