summaryrefslogtreecommitdiff
path: root/src/ws/node.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/ws/node.js')
-rw-r--r--src/ws/node.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/ws/node.js b/src/ws/node.js
index 75fe1ec..5ecfdac 100644
--- a/src/ws/node.js
+++ b/src/ws/node.js
@@ -239,6 +239,17 @@ Node.prototype.create = function()
}
};
+//! Recursively set draggable property from node until root node.
+Node.prototype.setDraggable = function(value)
+{
+ var node = this.element;
+ node.draggable = value;
+ if(this.parent != null)
+ {
+ this.parent.setDraggable(value);
+ }
+};
+
function checkHTML(html)
{
var doc = document.createElement('p');