Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Alloy Controller Inheritance Fail - But Why?

$
0
0

Hey everybody!

Following this Alloy inheritance example: https://github.com/appcelerator/alloy/tree/master/test/apps/advanced/inheritance/

I made this super file, called AbstractController.js:

exports.init = function ()
{
    Ti.API.info( 'super init...' );
};
And then this inheriting file, called index.js:
exports.baseController = 'AbstractController';
 
exports.init = function ()
{
    Ti.API.info( 'overridden init...' );
};
 
$.init();
But when running it, the log gave me this:

[INFO] : super init...

Why 'super init...'? I was expecting 'overridden init...'


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>