MCPcopy Create free account
hub / github.com/binux/qiandao / isElement

Function isElement

web/static/components/angularjs/angular.js:697–701  ·  view source on GitHub ↗

* @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)

Source from the content-addressed store, hash-verified

695 * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
696 */
697function isElement(node) {
698 return !!(node &&
699 (node.nodeName // we are a direct element
700 || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
701}
702
703/**
704 * @param str 'key1,key2,...'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected