From 1e0eeab1e83c66aeb9da01481cce349728358aae Mon Sep 17 00:00:00 2001 From: jlukic Date: Sun, 22 Dec 2013 03:40:00 -0500 Subject: [PATCH] fixes formatting from pull request for popup --- src/modules/popup.js | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/modules/popup.js b/src/modules/popup.js index 372aa3b77..e2837b8d2 100755 --- a/src/modules/popup.js +++ b/src/modules/popup.js @@ -253,27 +253,28 @@ $.fn.popup = function(parameters) { }, save: { - conditions: function () { - module.cache = { - title: $module.attr('title') - }; - if (module.cache.title) { - $module.attr('title', ''); - } - module.verbose('Saving original attributes', module.cache); + conditions: function () { + module.cache = { + title: $module.attr('title') + }; + if (module.cache.title) { + $module.removeAttr('title'); } + module.verbose('Saving original attributes', module.cache.title); + } }, restore: { - conditions: function () { - if (module.cache === undefined) { - module.error(error.cache); - return false; - } - if (module.cache.title) { - $module.attr('title', module.cache.title); - } - module.verbose('Restoring original attributes', module.cache); + conditions: function () { + if(module.cache === undefined) { + module.error(error.cache); + return false; } + if(module.cache.title) { + $module.attr('title', module.cache.title); + } + module.verbose('Restoring original attributes', module.cache.title); + return true; + } }, animate: { show: function(callback) {