Browse Source

fixes formatting from pull request for popup

pull/470/merge
jlukic 11 years ago
parent
commit
1e0eeab1e8
1 changed files with 18 additions and 17 deletions
  1. 35
      src/modules/popup.js

35
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) {

Loading…
Cancel
Save