[Webkit-unassigned] [Bug 14547] typeof document.body.childNodes=="function" ("object" expected)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Oct 10 17:29:56 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=14547





------- Comment #12 from dhtmlkitchen at gmail.com  2007-10-10 17:29 PDT -------
A workaround:
var isFunction = function( fn ) {
  return typeof fn == "function" && 
    typeof fn.hasOwnProperty == "function" && fn.hasOwnProperty('prototype');
};

More on this:
http://dhtmlkitchen.com/?category=/JavaScript/&date=2007/10/10/&entry=How-to-Tell-if-an-Object-is-a-Function#safari-anwser


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list