MCPcopy Create free account
hub / github.com/apache/cloudstack / isWindow

Function isWindow

tools/ngui/static/js/lib/angular.js:419–421  ·  view source on GitHub ↗

* Checks if `obj` is a window object. * * @private * @param {*} obj Object to check * @returns {boolean} True if `obj` is a window obj.

(obj)

Source from the content-addressed store, hash-verified

417 * @returns {boolean} True if `obj` is a window obj.
418 */
419function isWindow(obj) {
420 return obj && obj.document && obj.location && obj.alert && obj.setInterval;
421}
422
423
424function isScope(obj) {

Callers 4

copyFunction · 0.85
equalsFunction · 0.85
toJsonReplacerFunction · 0.85
JQLiteAddNodesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected