From 75e0a8663f20c345ac7debbbad1be5c4a70ddf98 Mon Sep 17 00:00:00 2001 From: "Chris J. Lee" Date: Thu, 5 Nov 2015 11:53:07 -0600 Subject: [PATCH] Deferred is being stored in the global scope It's missing a comma and not a semicolon; this breaks promises that are being shared as mentioned in --- forceng.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forceng.js b/forceng.js index 3c6354a..9e21367 100755 --- a/forceng.js +++ b/forceng.js @@ -312,7 +312,7 @@ angular.module('forceng', []) var method = obj.method || 'GET', headers = {}, - url = getRequestBaseURL(); + url = getRequestBaseURL(), deferred = $q.defer(); // dev friendly API: Add leading '/' if missing so url + path concat always works @@ -544,4 +544,4 @@ function oauthCallback(url) { injector.invoke(function (force) { force.oauthCallback(url); }); -} \ No newline at end of file +}