router: add removeTarget
This commit is contained in:
parent
980187193f
commit
625e7ba880
|
@ -111,7 +111,15 @@ define(function () {
|
|||
saveState()
|
||||
}
|
||||
|
||||
self.addTarget = function (d) { targets.push(d) }
|
||||
self.addTarget = function (d) {
|
||||
targets.push(d)
|
||||
}
|
||||
|
||||
self.removeTarget = function (d) {
|
||||
targets = targets.filter( function (e) {
|
||||
return d !== e
|
||||
})
|
||||
}
|
||||
|
||||
self.setData = function (data) {
|
||||
objects.nodes = {}
|
||||
|
|
Loading…
Reference in a new issue