FidoX
5 Nov 2011, 6:03 AM
Hello, I can't be able to listen for the maprender event using the control() method inside a controller. It works for other events but not for the maprender. On the other side, if I listen for the event in the map object itself it works.
This is the code that doesn't work:
Ext.define('Test.controller.MainController', {
extend: 'Ext.app.Controller',
init: function() {
console.log('init controller');
this.control({
'map': {
maprender: function() {
console.log('the map render');
}
}
});
}
});
Ext.application({
name: 'Test',
controllers: ['MainController'],
launch: function() {
Ext.create('Ext.Container', {
layout: 'card',
fullscreen: true,
items: [{
xtype: 'map',
}]
});
}
});
Im using chrome to testing with Sencha Touch 2.0.0 Preview Release 1
Anybody have the same issue?
Greetings.
This is the code that doesn't work:
Ext.define('Test.controller.MainController', {
extend: 'Ext.app.Controller',
init: function() {
console.log('init controller');
this.control({
'map': {
maprender: function() {
console.log('the map render');
}
}
});
}
});
Ext.application({
name: 'Test',
controllers: ['MainController'],
launch: function() {
Ext.create('Ext.Container', {
layout: 'card',
fullscreen: true,
items: [{
xtype: 'map',
}]
});
}
});
Im using chrome to testing with Sencha Touch 2.0.0 Preview Release 1
Anybody have the same issue?
Greetings.