code review

pull/2/head
gorhill 11 years ago
parent 1e1ec2e92c
commit 3849a3d4d9

@ -1934,10 +1934,9 @@ vAPI.cookies.observe = function(subject, topic, reason) {
if ( reason === 'deleted' || subject instanceof Ci.nsICookie2 === false ) { if ( reason === 'deleted' || subject instanceof Ci.nsICookie2 === false ) {
return; return;
} }
if ( typeof this.onChanged !== 'function' ) { if ( typeof this.onChanged === 'function' ) {
return; this.onChanged(new this.CookieEntry(subject));
} }
this.onChanged(new this.CookieEntry(subject));
}; };
/******************************************************************************/ /******************************************************************************/

Loading…
Cancel
Save