Skip to content
Browse files

Do not use instanceof (dosn't work cross global env)

  • Loading branch information...
1 parent 4a86196 commit cf0aceb3ed485d4c04d78934c39f8c8bcc22cff2 @janodvarko janodvarko committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 extension/content/firebug/console/functionMonitor.js
View
4 extension/content/firebug/console/functionMonitor.js
@@ -76,7 +76,7 @@ var FunctionMonitor = Obj.extend(Firebug.Module,
monitorFunction: function(context, fn, mode)
{
- if (typeof(fn) == "function" || fn instanceof Function)
+ if (typeof(fn) == "function")
{
var script = SourceFile.findScriptForFunctionInContext(context, fn);
if (script)
@@ -99,7 +99,7 @@ var FunctionMonitor = Obj.extend(Firebug.Module,
unmonitorFunction: function(context, fn, mode)
{
- if (typeof(fn) == "function" || fn instanceof Function)
+ if (typeof(fn) == "function")
{
var script = SourceFile.findScriptForFunctionInContext(context, fn);
if (script)

0 comments on commit cf0aceb

Please sign in to comment.
Something went wrong with that request. Please try again.