From 3849a3d4d90b9a96922396fcfe9965a69fe5f5d2 Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 7 May 2015 19:36:47 -0400 Subject: [PATCH] code review --- platform/firefox/vapi-background.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/platform/firefox/vapi-background.js b/platform/firefox/vapi-background.js index 3aba4e7..4bca250 100644 --- a/platform/firefox/vapi-background.js +++ b/platform/firefox/vapi-background.js @@ -1934,10 +1934,9 @@ vAPI.cookies.observe = function(subject, topic, reason) { if ( reason === 'deleted' || subject instanceof Ci.nsICookie2 === false ) { return; } - if ( typeof this.onChanged !== 'function' ) { - return; + if ( typeof this.onChanged === 'function' ) { + this.onChanged(new this.CookieEntry(subject)); } - this.onChanged(new this.CookieEntry(subject)); }; /******************************************************************************/