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 20:27:07 +00:00
parent 0f6c23a5e0
commit 741e6e02af

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;