From 2f11bff5ed0e0d98c71b17c9e092dd8c9f650008 Mon Sep 17 00:00:00 2001
From: Lloyd Hilaiel <lloyd@hilaiel.com>
Date: Wed, 16 Nov 2011 13:55:19 -0700
Subject: [PATCH] rename the persistent flag to allowPersistent.  issue #559

---
 example/index.html                                       | 2 +-
 resources/static/dialog/controllers/dialog_controller.js | 6 +++---
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/example/index.html b/example/index.html
index 3f50bea7a..e94edecb8 100644
--- a/example/index.html
+++ b/example/index.html
@@ -124,7 +124,7 @@ navigator.id.get(function(assertion) {
         $("#oAssertion").text(assertion);
         checkAssertion(assertion);
       };
-    }, {persistent: true});
+    }, {allowPersistent: true});
   });
 
   $("#logout").click(function(event) {
diff --git a/resources/static/dialog/controllers/dialog_controller.js b/resources/static/dialog/controllers/dialog_controller.js
index c69e8a8e1..de7991708 100644
--- a/resources/static/dialog/controllers/dialog_controller.js
+++ b/resources/static/dialog/controllers/dialog_controller.js
@@ -94,7 +94,7 @@
       getVerifiedEmail: function(origin_url, onsuccess, onerror) {
         return this.get(origin_url, {}, onsuccess, onerror);
       },
-    
+
       get: function(origin_url, params, onsuccess, onerror) {
         var self=this;
         self.onsuccess = onsuccess;
@@ -103,8 +103,8 @@
         if (typeof(params) == 'undefined') {
           params = {};
         }
-        
-        self.allowPersistent = (params.persistent == true);
+
+        self.allowPersistent = (params.allowPersistent == true);
 
         if('onLine' in navigator && !navigator.onLine) {
           self.doOffline();
-- 
GitLab