From 68fa6d1dfb9ca7cbfc4f2dd56490cfc2950a7a42 Mon Sep 17 00:00:00 2001
From: Sean McArthur <sean.monstar@gmail.com>
Date: Thu, 6 Sep 2012 14:59:54 -0700
Subject: [PATCH] add deprecation warning to logout with callback

fixes #2427
---
 resources/static/include_js/include.js | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/resources/static/include_js/include.js b/resources/static/include_js/include.js
index f6d35724d..3b775cca6 100644
--- a/resources/static/include_js/include.js
+++ b/resources/static/include_js/include.js
@@ -1236,7 +1236,10 @@
         _open_hidden_iframe();
         // send logout message if the commChan exists
         if (commChan) commChan.notify({ method: 'logout' });
-        if (typeof callback === 'function') setTimeout(callback, 0);
+        if (typeof callback === 'function') {
+          warn('navigator.id.logout callback argument has been deprecated.');
+          setTimeout(callback, 0);
+        }
       },
       // get an assertion
       get: function(callback, passedOptions) {
-- 
GitLab