});\r
\r
test("isFunction", function() {\r
- expect(20);\r
+ expect(21);\r
\r
// Make sure that false values return false\r
ok( !jQuery.isFunction(), "No Value" );\r
\r
document.body.removeChild( input );\r
\r
+ var a = document.createElement("a");\r
+ a.href = "some-function";\r
+ document.body.appendChild( a );\r
+\r
+ // This serializes with the word 'function' in it\r
+ ok( !jQuery.isFunction(a), "Anchor Element" );\r
+\r
+ document.body.removeChild( a );\r
+\r
// Recursive function calls have lengths and array-like properties\r
function callme(callback){\r
function fn(response){\r