MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / define

Function define

src/test/resources/libraries/bird/prototype.js:3087–3094  ·  view source on GitHub ↗
(D)

Source from the content-addressed store, hash-verified

3085 }
3086
3087 function define(D) {
3088 if (!element) element = getRootElement();
3089
3090 property[D] = 'client' + D;
3091
3092 viewport['get' + D] = function() { return element[property[D]] };
3093 return viewport['get' + D]();
3094 }
3095
3096 viewport.getWidth = define.curry('Width');
3097

Callers 15

on.jsFile · 0.50
dom-style.jsFile · 0.50
io-query.jsFile · 0.50
cache.jsFile · 0.50
Deferred.jsFile · 0.50
aspect.jsFile · 0.50
NodeList.jsFile · 0.50
NodeList-html.jsFile · 0.50
i18n.jsFile · 0.50
robotx.jsFile · 0.50
topic.jsFile · 0.50
regexp.jsFile · 0.50

Calls 1

getRootElementFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…