summaryrefslogtreecommitdiff
path: root/src/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/model')
-rw-r--r--src/model/core.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/model/core.js b/src/model/core.js
index c750ff53..cb5dca59 100644
--- a/src/model/core.js
+++ b/src/model/core.js
@@ -39,6 +39,9 @@ define(['util'], function(util) {
function Node() {
}
+ Node.prototype.equals = function(other_node){
+ return this.id == other_node.id;
+ }
function Link() {
}