From 0f1ea0e32660532d5cd54a4d31dc5a84d61b3e58 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 6 Nov 2015 14:09:33 -0500 Subject: [PATCH] was using old .pubsub syntax for orcid navigator function, which caused the error when user signed in --- src/js/apps/discovery/navigator.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/js/apps/discovery/navigator.js b/src/js/apps/discovery/navigator.js index 3d1c48609..6d5f48b00 100644 --- a/src/js/apps/discovery/navigator.js +++ b/src/js/apps/discovery/navigator.js @@ -515,7 +515,7 @@ define([ options: { done: function(data){ var q = new ApiQuery().load(JSON.parse(data.query).query); - self.pubsub.publish(self.pubSubKey, self.pubsub.START_SEARCH, q); + self.getPubSub().publish(self.getPubSub().START_SEARCH, q); }, fail: function() { var alerter = app.getController('AlertsController'); @@ -541,7 +541,7 @@ define([ orcidApi.getAccessData(orcidApi.getExchangeCode()) .done(function(data) { orcidApi.saveAccessData(data); - self.pubsub.publish(self.pubSubKey, self.pubsub.APP_EXIT, {url: window.location.pathname + + self.getPubSub().publish(self.getPubSub().APP_EXIT, {url: window.location.pathname + ((targetRoute && _.isString(targetRoute)) ? targetRoute : window.location.hash)}); }) .fail(function() { @@ -566,7 +566,7 @@ define([ }); } else { - self.pubsub.publish(self.pubSubKey, self.pubsub.NAVIGATE, 'index-page'); + self.getPubSub().publish(self.getPubSub().NAVIGATE, 'index-page'); } });