Commit 97c1fcc3 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Controla uso de estructura indefinida en listado

parent 8c190d25
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -48,6 +48,10 @@ define([

		_rescueOldInstance: function(item) {

			if (!this._rowsOld) {
				return;
			}

			var idProperty = item[this.idProperty],
				row = this._rowsOld[idProperty],
				rowInstance = row && row.instance;
+0 −2
Original line number Diff line number Diff line
@@ -85,8 +85,6 @@ define([

			"Should_HaveRowsStructureCreated_When_ReceiveData": function() {

				console.error(browser._rows);

				assert.isOk(getRow('1').instance, "No se ha añadido correctamente");
				assert.strictEqual(getRow('1').children.length, 2, "No se ha añadido correctamente");
				assert.strictEqual(getRow('1').leaves, 2, "No se ha añadido correctamente");