From 7e9e1904ff0423be2bef2df632bb56ea00974da8 Mon Sep 17 00:00:00 2001 From: Mohammad Younes Date: Wed, 18 Dec 2013 00:41:56 +0300 Subject: [PATCH] condition will never evaluate to true The condition should be either ```typeof module.cache === 'undefined'``` or ```module.cache === undefined``` --- src/modules/popup.js | 2 +- src/modules/transition.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/popup.js b/src/modules/popup.js index fed927696..372aa3b77 100755 --- a/src/modules/popup.js +++ b/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; } diff --git a/src/modules/transition.js b/src/modules/transition.js index 4b0e07c7f..e1a2f1d89 100755 --- a/src/modules/transition.js +++ b/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; }