Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1076,7 +1076,9 @@ Y.mix(Y_Node.prototype, { | |
|
||
hasMethod: function(method) { | ||
var node = this._node; | ||
return !!(node && method in node && node[method].apply); | ||
return !!(node && method in node && | ||
(typeof node[method] === 'function' || | ||
String(node[method]).indexOf('function') === 1)); // IE reports as object, prepends space | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
msweeney
Author
Contributor
|
||
} | ||
}, true); | ||
|
||
|
Large diffs are not rendered by default.
Large diffs are not rendered by default.
String-converting host objects is known to blow up in IE, so this is not a very good idea. Function decompilation is another thing that's best avoided.