UNPKG

create-expo-cljs-app

Version:

Create a react native application with Expo and Shadow-CLJS!

95 lines (93 loc) 3.66 kB
goog.provide("goog.dom.asserts"); goog.require("goog.asserts"); goog.dom.asserts.assertIsLocation = function(o) { if (goog.asserts.ENABLE_ASSERTS) { var win = goog.dom.asserts.getWindow_(o); if (win) { if (!o || !(o instanceof win.Location) && o instanceof win.Element) { goog.asserts.fail("Argument is not a Location (or a non-Element mock); got: %s", goog.dom.asserts.debugStringForType_(o)); } } } return o; }; goog.dom.asserts.assertIsElementType_ = function(o, typename) { if (goog.asserts.ENABLE_ASSERTS) { var win = goog.dom.asserts.getWindow_(o); if (win && typeof win[typename] != "undefined") { if (!o || !(o instanceof win[typename]) && (o instanceof win.Location || o instanceof win.Element)) { goog.asserts.fail("Argument is not a %s (or a non-Element, non-Location mock); " + "got: %s", typename, goog.dom.asserts.debugStringForType_(o)); } } } return o; }; goog.dom.asserts.assertIsHTMLAnchorElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLAnchorElement"); }; goog.dom.asserts.assertIsHTMLButtonElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLButtonElement"); }; goog.dom.asserts.assertIsHTMLLinkElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLLinkElement"); }; goog.dom.asserts.assertIsHTMLImageElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLImageElement"); }; goog.dom.asserts.assertIsHTMLAudioElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLAudioElement"); }; goog.dom.asserts.assertIsHTMLVideoElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLVideoElement"); }; goog.dom.asserts.assertIsHTMLInputElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLInputElement"); }; goog.dom.asserts.assertIsHTMLTextAreaElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLTextAreaElement"); }; goog.dom.asserts.assertIsHTMLCanvasElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLCanvasElement"); }; goog.dom.asserts.assertIsHTMLEmbedElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLEmbedElement"); }; goog.dom.asserts.assertIsHTMLFormElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLFormElement"); }; goog.dom.asserts.assertIsHTMLFrameElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLFrameElement"); }; goog.dom.asserts.assertIsHTMLIFrameElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLIFrameElement"); }; goog.dom.asserts.assertIsHTMLObjectElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLObjectElement"); }; goog.dom.asserts.assertIsHTMLScriptElement = function(o) { return goog.dom.asserts.assertIsElementType_(o, "HTMLScriptElement"); }; goog.dom.asserts.debugStringForType_ = function(value) { if (goog.isObject(value)) { try { return value.constructor.displayName || value.constructor.name || Object.prototype.toString.call(value); } catch (e) { return "\x3cobject could not be stringified\x3e"; } } else { return value === undefined ? "undefined" : value === null ? "null" : typeof value; } }; goog.dom.asserts.getWindow_ = function(o) { try { var doc = o && o.ownerDocument; var win = doc && (doc.defaultView || doc.parentWindow); win = win || goog.global; if (win.Element && win.Location) { return win; } } catch (ex) { } return null; }; //# sourceMappingURL=goog.dom.asserts.js.map