MCPcopy
hub / github.com/SortableJS/Vue.Draggable / buildAttribute

Function buildAttribute

src/vuedraggable.js:4–11  ·  view source on GitHub ↗
(object, propName, value)

Source from the content-addressed store, hash-verified

2import { console, camelize } from "./util/helper";
3
4function buildAttribute(object, propName, value) {
5 if (value == undefined) {
6 return object;
7 }
8 object = object == null ? {} : object;
9 object[propName] = value;
10 return object;
11}
12
13function removeNode(node) {
14 if (node.parentElement !== null) {

Callers 1

updateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected