define('app/controllers/notification', ['ember'],
	/**
	 * Notification controller
	 *
	 * @returns Class
	 */
	function() {
		return Ember.Object.extend({
			
			timeout: false,

			notify: function(message){
				if(this.timeout){
					clearTimeout(this.timeout);
				}
				log("notification: " + message);
				jQuery.mobile.showPageLoadingMsg(
						jQuery.mobile.pageLoadErrorMessageTheme,
						message, true);
				this.timeout = setTimeout(jQuery.mobile.hidePageLoadingMsg, 1500);
			}
			
		});
	}
);

define('app/controllers/notification', ['ember'],
    /**
     * Notification controller
     *
     * @returns Class
     */
    function() {
        return Ember.Object.extend({

            timeout: false,

            notify: function(message){
                if(this.timeout){
                    clearTimeout(this.timeout);
                }
                log("notification: " + message);
                $.mobile.loading( 'show', {
                            text: message,
                            textVisible: true,
                            textonly: true,
                            theme: $.mobile.pageLoadErrorMessageTheme
                });
                this.timeout = setTimeout($.mobile.loading( 'hide' ), 1500);
            }
        });
    }
);

Use new way of loading messages, the old one is deprecated
Use new way of loading messages, the old one is deprecated
