Permalink
Browse files

Avoid exception when unregistering not registered error listener

  • Loading branch information...
1 parent 4b065d1 commit a8016d30e7d10280a58bfa7abb6450d0a39c2ea8 @janodvarko janodvarko committed Oct 3, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 extension/content/firebug/console/errors.js
@@ -146,6 +146,9 @@ var Errors = Firebug.Errors = Obj.extend(Firebug.Module,
startObserving: function()
{
+ if (this.isObserving)
+ return;
+
if (FBTrace.DBG_ERRORLOG)
FBTrace.sysout("Errors.startObserving");
@@ -157,6 +160,9 @@ var Errors = Firebug.Errors = Obj.extend(Firebug.Module,
stopObserving: function()
{
+ if (!this.isObserving)
+ return;
+
if (FBTrace.DBG_ERRORLOG)
FBTrace.sysout("Errors.stopObserving");

0 comments on commit a8016d3

Please sign in to comment.