mirror of
https://bitbucket.org/wisemapping/wisemapping-open-source.git
synced 2024-11-22 14:17:57 +01:00
Delete command topic.
This commit is contained in:
parent
964505abd4
commit
e70f2726a3
@ -156,7 +156,7 @@ mindplot.commands.DeleteCommand = new Class({
|
|||||||
});
|
});
|
||||||
var ret = [result[0]];
|
var ret = [result[0]];
|
||||||
for (var i = 1; i < result.length; i++) { // start loop at 1 as element 0 can never be a duplicate
|
for (var i = 1; i < result.length; i++) { // start loop at 1 as element 0 can never be a duplicate
|
||||||
if (result[i - 1] !== result[i]) {
|
if (result[i - 1] !== result[i] && result[i] != null) {
|
||||||
ret.push(result[i]);
|
ret.push(result[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user