spec/rails_app/tmp/cache/assets/test/sprockets/7250cf6654022ff231aed2eaa0ce7b5f in netzke-testing-0.11.1 vs spec/rails_app/tmp/cache/assets/test/sprockets/7250cf6654022ff231aed2eaa0ce7b5f in netzke-testing-0.11.2

- old
+ new

@@ -1,8 +1,8 @@ {I" class:ETI"BundledAsset;FI"logical_path;TI"#netzke/testing/helpers/grid.js;TI" pathname;TI"i/Users/mxgrn/code/netzke/netzke-testing/app/assets/javascripts/netzke/testing/helpers/grid.js.coffee;FI"content_type;TI"application/javascript;TI" -mtime;Tl+RI" length;TiI" digest;TI"%ba9bb5d7f27339d696d15aa7ee9ecdaf;FI" source;TI"(function() { +mtime;Tl+TI" length;TiI" digest;TI"%7f203a759180c518d6242a8bf3ab719e;FI" source;TI"(function() { Ext.apply(window, { grid: function(title) { if (title) { return Ext.ComponentQuery.query('grid[title="' + title + '"]')[0]; } else { @@ -12,22 +12,21 @@ expandRowCombo: function(field, params) { var column, editor, g; g = g || this.grid(); editor = g.getPlugin('celleditor'); column = g.headerCt.items.findIndex('name', field) - 1; - window.editor = editor; editor.startEditByPosition({ - row: g.getSelectionModel().getCurrentPosition().row, + row: g.getSelectionModel().getCurrentPosition().rowIdx, column: column }); return editor.activeEditor.field.onTriggerClick(); }, addRecords: function() { - var params, record, _i, _len; + var j, len, params, record; params = arguments[arguments.length - 1]; - for (_i = 0, _len = arguments.length; _i < _len; _i++) { - record = arguments[_i]; + for (j = 0, len = arguments.length; j < len; j++) { + record = arguments[j]; if (record !== params) { record = params.to.getStore().add(record)[0]; record.isNew = true; } } @@ -41,20 +40,20 @@ grid = params.to || this.grid(); record = grid.getStore().add(recordData); return grid.getSelectionModel().select(grid.getStore().last()); }, updateRecord: function(recordData, params) { - var grid, key, record, value, _results; + var grid, key, record, results, value; params = params || []; grid = params.to || this.grid(); record = grid.getSelectionModel().getSelection()[0]; - _results = []; + results = []; for (key in recordData) { value = recordData[key]; - _results.push(record.set(key, value)); + results.push(record.set(key, value)); } - return _results; + return results; }, selectAssociation: function(attr, value, callback) { expandRowCombo(attr); return wait(function() { select(value, { @@ -97,11 +96,11 @@ if (c.isVisible()) { return visibleColumns.push(c); } }); i = -1; - return Ext.Array.map(Ext.DomQuery.select('tr[data-recordid="' + record.internalId + '"] td div'), function(cell) { + return Ext.Array.map(Ext.DomQuery.select('table[data-recordid="' + record.internalId + '"] tbody tr td div'), function(cell) { i++; if (visibleColumns[i].attrType === 'boolean') { return record.get(visibleColumns[i].name); } else { return cell.innerHTML; @@ -123,26 +122,26 @@ } grid = params["in"] || this.grid(); return grid.getSelectionModel().select(grid.getStore().first()); }, editLastRow: function() { - var data, grid, key, record, store, _results; + var data, grid, key, record, results, store; data = arguments[0]; grid = Ext.ComponentQuery.query("grid")[0]; store = grid.getStore(); record = store.last(); - _results = []; + results = []; for (key in data) { - _results.push(record.set(key, data[key])); + results.push(record.set(key, data[key])); } - return _results; + return results; }, completeEditing: function(g) { var e; g = g || this.grid(); e = g.getPlugin('celleditor'); return e.completeEdit(); } }); }).call(this); -;TI"required_assets_digest;TI"%73b65d8f871e04a4745ca71e7222d736;FI" _version;TI"%4bf7b15359fe8e0974f7f263e26e27f4;F +;TI"required_assets_digest;TI"%9372f8783cbd1ebed5a28e09fdde317b;FI" _version;TI"%4bf7b15359fe8e0974f7f263e26e27f4;F \ No newline at end of file