Browse Source

condition will never evaluate to true

The condition should be either ```typeof module.cache  ===
'undefined'``` or  ```module.cache  === undefined```
pull/433/head
Mohammad Younes 11 years ago
parent
commit
7e9e1904ff
2 changed files with 2 additions and 2 deletions
  1. 2
      src/modules/popup.js
  2. 2
      src/modules/transition.js

2
src/modules/popup.js

@ -265,7 +265,7 @@ $.fn.popup = function(parameters) {
},
restore: {
conditions: function () {
if (typeof module.cache === undefined) {
if (module.cache === undefined) {
module.error(error.cache);
return false;
}

2
src/modules/transition.js

@ -261,7 +261,7 @@ $.fn.transition = function() {
restore: {
conditions: function() {
if(typeof module.cache === undefined) {
if(module.cache === undefined) {
module.error(error.cache);
return false;
}

Loading…
Cancel
Save