From 95076a516ff8a57d2d3e5c6e9033f05275906bbe Mon Sep 17 00:00:00 2001
From: Shane Tomlinson <stomlinson@mozilla.com>
Date: Fri, 29 Jun 2012 11:46:02 +0100
Subject: [PATCH] Add a console log message stating loggedInEmail has been
 deprecated. Update curly brace style.

---
 resources/static/include_js/include.js | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js
index e105db971..45d5725cb 100644
--- a/resources/static/include_js/include.js
+++ b/resources/static/include_js/include.js
@@ -1029,12 +1029,16 @@
 
       // back compat support for loggedInEmail
       if (typeof options.loggedInEmail !== 'undefined' &&
-          typeof options.loggedInUser !== 'undefined')
-      {
+          typeof options.loggedInUser !== 'undefined') {
         throw "you cannot supply *both* loggedInEmail and loggedInUser";
       }
-      else if(typeof options.loggedInEmail !== 'undefined')
-      {
+      else if(typeof options.loggedInEmail !== 'undefined') {
+        try {
+          console.log("loggedInEmail has been deprecated");
+        } catch(e) {
+          /* ignore error */
+        }
+
         options.loggedInUser = options.loggedInEmail;
         delete options.loggedInEmail;
       }
-- 
GitLab