MCPcopy Create free account
hub / github.com/breck7/scroll / interpret

Function interpret

external/.scrollLibs.js:11794–11796  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

11792 var this$1 = this
11793
11794 var interpret = function (val) {
11795 return typeof val == "number" || /^\d+$/.test(String(val)) ? val + "px" : val
11796 }
11797 if (width != null) {
11798 this.display.wrapper.style.width = interpret(width)
11799 }

Callers 1

addEditorMethodsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected