2009-08-01 2 views

ответ

0

Вызов this.notify() и объявить уведомит() следующим образом

YourAssistant.prototype.notify = function(custom,event) { 
    console.log("################# NOTIFY ############") 
    var target = custom; 
    var appController = Mojo.Controller.getAppController(); 
    this.controller.commitChanges(); 
    var bannerParams = { 
     soundClass: '', 
     soundFile: '', 
     icon: '', 
     messageText: 'hahaha hahaha' 
    } 
    appController.showBanner(bannerParams, {banner: this.message}); 
} 
Смежные вопросы