[#25,model][xs]: remove artificial field attribute (follow up to penultimate commit cf42e43ff0).

This commit is contained in:
Rufus Pollock
2012-02-18 07:48:14 +00:00
parent 0364f3e847
commit 2da6c1a297
2 changed files with 2 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ test('Field: basics', function () {
var field = new recline.Model.Field('x');
equal(field.id, 'x', 'Set of id from single argumentst to ctor');
equal(field.attributes.id, 'x', 'Set of id from single argumentst to ctor');
ok(!('0' in field.toJSON()), 'Should have removed artificially created 0 key in attributes');
});
})(this.jQuery);