Fix code style issues

This commit is contained in:
Tyler Long
2017-04-13 20:16:38 +08:00
parent dc4edf775d
commit a2ce9e6a54
8 changed files with 233 additions and 230 deletions

View File

@@ -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