mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-23 09:20:03 +02:00
Fix code style issues
This commit is contained in:
@@ -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)
|
||||
})
|
||||
}
|
||||
})
|
||||
@@ -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
|
||||
|
Reference in New Issue
Block a user