Bug Tracker

Ticket #3485: isfunction_memory_leak.diff

File isfunction_memory_leak.diff, 643 bytes (added by choan, 12 years ago)
  • src/core.js

     
    614614        // See test/unit/core.js for details concerning this function.
    615615        // Since 1.3 DOM methods and function like alert
    616616        // aren't supported. They return false on IE (#2968).
     617        // Memory leaks appear in IE6 when applyin instance of to
     618        // window, document or any other COM object
    617619        isFunction: function( fn ) {
    618                 return fn instanceof Function;
     620                return !!fn && !!fn.hasOwnProperty && fn instanceof Function;
    619621        },
    620622
    621623        // check if an element is in a (or is an) XML document