Skip to content

Commit

Permalink
Fix code style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tylerlong committed Apr 13, 2017
1 parent dc4edf7 commit a2ce9e6
Show file tree
Hide file tree
Showing 8 changed files with 242 additions and 239 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ test/tmp_*
test/fixtures/samples/*.actual*

dist/*.js
todo.md
5 changes: 3 additions & 2 deletions src/diagrams/flowchart/graphDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ var setClickFun = function (id, functionName) {
var elem = d3.select(element).select('#' + id)
if (elem !== null) {
elem.on('click', function () {
eval(functionName + '(\'' + id + '\')') // jshint ignore:line
window[functionName](id)
})
}
})
Expand Down Expand Up @@ -314,7 +314,8 @@ exports.defaultStyle = function () {
*/
exports.addSubGraph = function (list, title) {
function uniq (a) {
var prims = {'boolean': {}, 'number': {}, 'string': {}}, objs = []
var prims = {'boolean': {}, 'number': {}, 'string': {}}
var objs = []

return a.filter(function (item) {
var type = typeof item
Expand Down
2 changes: 1 addition & 1 deletion src/diagrams/gantt/ganttDb.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ var getStartDate = function (prevTime, dateFormat, str) {
str = str.trim()

// Test for after
var re = /^after\s+([\d\w\-]+)/
var re = /^after\s+([\d\w-]+)/
var afterStatement = re.exec(str.trim())

if (afterStatement !== null) {
Expand Down
Loading

0 comments on commit a2ce9e6

Please sign in to comment.