MCPcopy Create free account
hub / github.com/EricSimons/ionic-course / isElement

Function isElement

code/songhop/www/lib/angular/angular.js:673–677  ·  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

671 * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
672 */
673function isElement(node) {
674 return !!(node &&
675 (node.nodeName // we are a direct element
676 || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
677}
678
679/**
680 * @param str 'key1,key2,...'

Callers 1

getYOffsetFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected