Delete command topic.

This commit is contained in:
Paulo Gustavo Veiga 2012-11-17 13:54:46 -03:00
parent 964505abd4
commit e70f2726a3

View File

@ -156,7 +156,7 @@ mindplot.commands.DeleteCommand = new Class({
});
var ret = [result[0]];
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]);
}
}