[#88,view/grid,refactor][s]: switch DataGrid to use new state setup (and introduce new Model ObjectState for this purpose).

* Switched hiddenFields to be part of state object (only state on DataGrid at the moment).
This commit is contained in:
Rufus Pollock
2012-04-14 12:58:39 +01:00
parent 5eb075b14c
commit 670eb1e1de
5 changed files with 63 additions and 28 deletions

View File

@@ -24,8 +24,9 @@ test('getState', function () {
el: $el
});
var state = explorer.getState();
ok(state.queryState);
equal(state.queryState.size, 100);
ok(state.query);
equal(state.query.size, 100);
deepEqual(state['view-grid'].hiddenFields, []);
$el.remove();
});