MCPcopy
hub / github.com/angular-ui/ui-router / isElement

Function isElement

test/angular/1.7/angular.js:887–891  ·  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

885 * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
886 */
887function isElement(node) {
888 return !!(node &&
889 (node.nodeName // We are a direct element.
890 || (node.prop && node.attr && node.find))); // We have an on and find method part of jQuery API.
891}
892
893/**
894 * @param str 'key1,key2,...'

Callers 3

baseExtendFunction · 0.70
getYOffsetFunction · 0.70
angular-animate.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected