Skip to content

Commit 0f3c9c2

Browse files
committed
Fixed typo in condition
1 parent 1053ac8 commit 0f3c9c2

File tree

5 files changed

+11
-9
lines changed

5 files changed

+11
-9
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@ $ cat .gitignore
1414
node_modules
1515
node_modules/**/*
1616
bin
17+
cdn
1718
reports
18-
reports/**/*
19+
reports/**/*

Gruntfile.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -195,8 +195,9 @@ module.exports = function(grunt) {
195195
});
196196

197197
// Default task.
198-
grunt.registerTask('default', ['clean', 'rig']);
199-
grunt.registerTask('release', ['default', 'uglify', 'copy', 'compress']);
198+
//grunt.registerTask('default', ['clean', 'rig']);
199+
grunt.registerTask('default', ['rig']);
200+
grunt.registerTask('release', ['clean','default', 'uglify', 'copy', 'compress']);
200201

201202

202-
};
203+
};

example/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
<head>
44
<meta charset="utf-8">
55
<title>flowchart.js · Playground</title>
6-
<script src="http://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
7-
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
8-
<script src="../bin/flowchart-latest.js"></script>
6+
<script type="text/javascript" src="../cdn/raphael-min.js"></script>
7+
<script type="text/javascript" src="../cdn/jquery.min.js"></script>
8+
<script type="text/javascript" src="../bin/flowchart-latest.js"></script>
99
<script>
1010

1111
window.onload = function () {

src/flowchart.parse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ function parse(input) {
167167
sub = symbol.text.split(':>');
168168
/* adding support for classes */
169169
var tmpText = sub[0];
170-
if (tmpText.indexOf('|') >= 0 {
170+
if (tmpText.indexOf('|') >= 0) {
171171
var txtAndClass = tmpText.split('|');
172172
symbol.text = txtAndClass[0];
173173
symbol.class = txtAndClass[1];

src/flowchart.symbol.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ function Symbol(chart, options, symbol) {
66
this.symbolType = options.symbolType;
77

88
this.next_direction = options.next && options['direction_next'] ? options['direction_next'] : undefined;
9-
var class = (this.options.class) || (this.chart.options.symbols[this.symbolType]['class'] || this.chart.options['class']);
9+
var class = (this.options.class || this.chart.options.symbols[this.symbolType]['class'] || this.chart.options['class']);
1010

1111
this.text = this.chart.paper.text(0, 0, options.text);
1212
//Raphael does not support the svg group tag so setting the text node id to the symbol node id plus t

0 commit comments

Comments
 (0)