Return Deferred promise when app handles the link, avoids error Cannot read property 'promise' of undefined

This commit is contained in:
Nathan Gray 2015-09-21 22:34:45 +00:00
parent b4dce8b7f4
commit 30c7669588

View File

@ -136,7 +136,7 @@ var fw_browser = Class.extend({
{
var ret = window.app[this.app.appName].linkHandler.call(window.app[this.app.appName], _url);
{
if (ret === true) return;
if (ret === true) return this.loadingDeferred.promise();
if (typeof ret === 'string')
{
_url = ret;