MCPcopy Create free account
hub / github.com/cafebazaar/blacksmith / isElement

Function isElement

web/static/bower_components/angular/angular.js:773–777  ·  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

771 * @returns {boolean} True if `value` is a DOM element (or wrapped jQuery element).
772 */
773function isElement(node) {
774 return !!(node &&
775 (node.nodeName // we are a direct element
776 || (node.prop && node.attr && node.find))); // we have an on and find method part of jQuery API
777}
778
779/**
780 * @param str 'key1,key2,...'

Callers 1

getYOffsetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected