Ticket #3134: toString.diff
File toString.diff, 538 bytes (added by , 14 years ago) |
---|
-
src/core.js
615 615 // See test/unit/core.js for details concerning this function. 616 616 isFunction: function( fn ) { 617 617 return !!fn && typeof fn != "string" && !fn.nodeName && 618 fn.constructor != Array && /^[\s[]?function/.test( fn + "");618 fn.constructor != Array && /^[\s[]?function/.test( Object.toString.call(fn) ); 619 619 }, 620 620 621 621 // check if an element is in a (or is an) XML document