MCPcopy Create free account
hub / github.com/sql-js/sql.js / interpret

Function interpret

GUI/codemirror/lib/codemirror.js:4237–4239  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

4235
4236 setSize: methodOp(function(width, height) {
4237 function interpret(val) {
4238 return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val;
4239 }
4240 if (width != null) this.display.wrapper.style.width = interpret(width);
4241 if (height != null) this.display.wrapper.style.height = interpret(height);
4242 if (this.options.lineWrapping) clearLineMeasurementCache(this);

Callers 1

codemirror.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…