* @ngdoc function * @name angular.isElement * @module ng * @kind function * * @description * Determines if a reference is a DOM element (or wrapped jQuery element). * * @param {*} value Reference to check. * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
(node)
| 886 | * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element). |
| 887 | */ |
| 888 | function isElement(node) { |
| 889 | return !!(node && |
| 890 | (node.nodeName // We are a direct element. |
| 891 | || (node.prop && node.attr && node.find))); // We have an on and find method part of jQuery API. |
| 892 | } |
| 893 | |
| 894 | /** |
| 895 | * @param str 'key1,key2,...' |
no outgoing calls
no test coverage detected