* @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)
| 790 | * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element). |
| 791 | */ |
| 792 | function isElement(node) { |
| 793 | return !!(node && |
| 794 | (node.nodeName // we are a direct element |
| 795 | || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API |
| 796 | } |
| 797 | |
| 798 | /** |
| 799 | * @param str 'key1,key2,...' |
no outgoing calls
no test coverage detected