mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Allow arbitrary data to be associated with nodes
This commit is contained in:
parent
6ac26ef423
commit
4752706da3
@ -39,6 +39,7 @@ function Node(nodeType) {
|
|||||||
this.properties = {};
|
this.properties = {};
|
||||||
this.beforeCode = [];
|
this.beforeCode = [];
|
||||||
this.afterCode = [];
|
this.afterCode = [];
|
||||||
|
this.data = {}; // Property for associating arbitrary data with a node
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user