summaryrefslogtreecommitdiff
path: root/scripts/model
diff options
context:
space:
mode:
authorLV-426 <lv-426@taproot.org.il>2014-11-09 15:01:03 +0200
committerLV-426 <lv-426@taproot.org.il>2014-11-09 15:06:21 +0200
commit8af649c249daea983a08d102284d571f0e88267b (patch)
treee3e307c6fd306c5e18daaf2dca44b732079ad962 /scripts/model
parent753196f3dd62f8c1fedb0036e922d3a220093ee9 (diff)
scripts/model/graph.js merge resolution
Diffstat (limited to 'scripts/model')
-rw-r--r--scripts/model/graph.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/scripts/model/graph.js b/scripts/model/graph.js
index 6ea6a3e4..26d833e6 100644
--- a/scripts/model/graph.js
+++ b/scripts/model/graph.js
@@ -1,7 +1,7 @@
"use strict"
-define(['signal', 'consts', 'util', 'textanalysis'], function (
- signal, consts, util, textanalysis) {
+define(['signal', 'consts', 'util', 'textanalysis','model/util', 'rz_api_backend', 'rz_api_mesh'], function (
+ signal, consts, util, textanalysis, model_util, rz_api_backend, rz_api_mesh) {
function Graph(el) {
@@ -345,6 +345,7 @@ function Graph(el) {
/**
* editType:
+ *
* @return true if type changed
*/
this.editType = function(id, state, newtype) {
@@ -438,7 +439,7 @@ function Graph(el) {
var findNode = function(id, state) {
for (var i = 0; i < nodes.length; i++) {
if (nodes[i].id === id || nodes[i].state === state)
- return nodes[i]
+ return nodes[i];
};
}
@@ -451,7 +452,7 @@ function Graph(el) {
}
var findNodes = function(id, state) {
- //id=id.toLowerCase();
+ // id=id.toLowerCase();
var foundNodes = [];
for (var i = 0; i < nodes.length; i++) {
if ((id && nodes[i].id === id) || (state && nodes[i].state === state))
@@ -463,7 +464,7 @@ function Graph(el) {
var findNodeIndex = function(id, state) {
for (var i = 0; i < nodes.length; i++) {
if ((id && nodes[i].id === id) || (state && nodes[i].state === state))
- return i
+ return i;
};
}
@@ -489,7 +490,6 @@ function Graph(el) {
}
/**
- /**
* perform initial DB load from backend
*/
// @ajax-trans
@@ -610,6 +610,7 @@ function Graph(el) {
this.links = get_links;
};
-
- return Graph;
+ return {
+ Graph: Graph,
+ };
});