Made changes based on jslint

This commit is contained in:
Jason Kim
2014-12-09 22:26:42 -08:00
parent bd2633acf4
commit 202af046aa
2 changed files with 3 additions and 3 deletions

View File

@@ -55,7 +55,8 @@ exports.addVertex = function (id, text, type, style) {
exports.addLink = function (start, end, type, linktext) {
//console.log('Got edge', start, end);
var edge = {start: start, end: end, type: undefined, text: ''};
var linktext = type.text;
linktext = type.text;
if (typeof linktext !== 'undefined') {
edge.text = linktext;
}
@@ -204,4 +205,3 @@ exports.clear = function () {
exports.defaultStyle = function () {
return "fill:#ffa;stroke: #f66; stroke-width: 3px; stroke-dasharray: 5, 5;fill:#ffa;stroke: #666;";
};

View File

@@ -18,4 +18,4 @@ module.exports.detectType = function(text){
}
return "graph";
}
};