Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit cf0aceb3ed485d4c04d78934c39f8c8bcc22cff2 1 parent 4a86196
@janodvarko janodvarko authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.