MCPcopy Index your code
hub / github.com/angular-ui/ui-router / isElement

Function isElement

test/angular/1.3/angular.js:689–693  ·  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

687 * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
688 */
689function isElement(node) {
690 return !!(node &&
691 (node.nodeName // we are a direct element
692 || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
693}
694
695/**
696 * @param str 'key1,key2,...'

Callers 1

getYOffsetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected