MCPcopy Create free account
hub / github.com/DHTMLX/scheduler / prepareValue

Function prepareValue

codebase/sources/dhtmlxscheduler.js:2238–2244  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

2236 };
2237 scheduler2.set_xy = function(node, w, h, x, y) {
2238 function prepareValue(val) {
2239 let prepared = val;
2240 if (!isNaN(Number(prepared))) {
2241 prepared = Math.max(0, prepared) + "px";
2242 }
2243 return prepared;
2244 }
2245 var direction = "left";
2246 if (w !== void 0) {
2247 node.style.width = prepareValue(w);

Callers 1

extend$jFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected