#299 fix key bug when nulls are mixed in

This commit is contained in:
Leo Horie 2014-12-08 09:55:32 -05:00
parent 8c30b1a554
commit dc42632e5a
3 changed files with 10 additions and 1 deletions

View file

@ -134,6 +134,7 @@ var m = (function app(window, undefined) {
}
}
if (shouldMaintainIdentities) {
if (data.indexOf(null) > -1) data = data.filter(function(x) {return x != null})
for (var i = 0; i < data.length; i++) {
if (data[i] && data[i].attrs) {
if (data[i].attrs.key != null) {