Lines Matching refs:model
794 table.data.model.prototype.sync = function (action) {
810 table.data.model.prototype.sync = function (action) {
888 table.data.model.prototype.sync = function (action) {
907 table.data.model.prototype.sync = function (action) {
958 model = table.data.item(0);
962 Y.Assert.areSame(2, model.get('a'));
963 Y.Assert.areSame(2, model.get('b'));
964 Y.Assert.areSame(2, model.get('c'));
969 model = table.data.item(0);
971 table.modifyRow(model.get('id'), { a: 2, b: 2, c: 2 });
973 Y.Assert.areSame(2, model.get('a'));
974 Y.Assert.areSame(2, model.get('b'));
975 Y.Assert.areSame(2, model.get('c'));
980 model = table.data.item(0);
982 table.modifyRow(model.get('clientId'), { a: 2, b: 2, c: 2 });
984 Y.Assert.areSame(2, model.get('a'));
985 Y.Assert.areSame(2, model.get('b'));
986 Y.Assert.areSame(2, model.get('c'));
989 "modifyRow(model, data) should change the Model attributes": function () {
991 model = table.data.item(0);
993 table.modifyRow(model, { a: 2, b: 2, c: 2 });
995 Y.Assert.areSame(2, model.get('a'));
996 Y.Assert.areSame(2, model.get('b'));
997 Y.Assert.areSame(2, model.get('c'));
1000 "modifyRow(index, data) should fire the model's change event": function () {
1002 model = table.data.item(0),
1018 "modifyRow(id, data) should fire the model's change event": function () {
1020 model = table.data.item(0),
1030 table.modifyRow(model.get('id'), { a: 2, b: 2, c: 2 });
1036 "modifyRow(clientId, data) should fire the model's model event": function () {
1038 model = table.data.item(0),
1048 table.modifyRow(model.get('clientId'), { a: 2, b: 2, c: 2 });
1054 "modifyRow(model, data) should fire the model's change event": function () {
1056 model = table.data.item(0),
1066 table.modifyRow(model, { a: 2, b: 2, c: 2 });
1074 model = table.data.item(0),
1077 table.data.model.prototype.sync = function (action) {
1089 model = table.data.item(0),
1092 table.data.model.prototype.sync = function (action) {
1097 table.modifyRow(model.get('id'), { a: 2, b: 2, c: 2 }, { sync: true });
1104 model = table.data.item(0),
1107 table.data.model.prototype.sync = function (action) {
1112 table.modifyRow(model.get('clientId'), { a: 2, b: 2, c: 2 }, { sync: true });
1117 "modifyRow(model, data, { sync: true }) should trigger Model sync": function () {
1119 model = table.data.item(0),
1122 table.data.model.prototype.sync = function (action) {
1127 table.modifyRow(model, { a: 2, b: 2, c: 2 }, { sync: true });
1134 model = table.data.item(0),
1139 table.data.model.prototype.sync = function (action) {
1151 model = table.data.item(0),
1156 table.data.model.prototype.sync = function (action) {
1161 table.modifyRow(model.get('id'), { a: 2, b: 2, c: 2 });
1168 model = table.data.item(0),
1173 table.data.model.prototype.sync = function (action) {
1178 table.modifyRow(model.get('clientId'), { a: 2, b: 2, c: 2 });
1183 "modifyRow(model, data) with autoSync: true should trigger Model sync": function () {
1185 model = table.data.item(0),
1190 table.data.model.prototype.sync = function (action) {
1195 table.modifyRow(model, { a: 2, b: 2, c: 2 });
1238 model = table.data.item(1),
1244 Y.Assert.areSame(model, table.data.item(0));
1249 model = table.data.item(1),
1255 Y.Assert.areSame(model, table.data.item(0));
1260 model = table.data.item(1),
1266 Y.Assert.areSame(model, table.data.item(0));
1269 "removeRow(model) should delete the Model attributes": function () {
1271 model = table.data.item(1),
1277 Y.Assert.areSame(model, table.data.item(0));
1299 model = table.data.item(0),
1309 table.removeRow(model.get('id'));
1317 model = table.data.item(0),
1327 table.removeRow(model.get('clientId'));
1333 "removeRow(model, data) should fire the data's remove event": function () {
1335 model = table.data.item(0),
1345 table.removeRow(model);
1355 table.data.model.prototype.sync = function (action) {
1367 model = table.data.item(0),
1370 table.data.model.prototype.sync = function (action) {
1375 table.removeRow(model.get('id'), { sync: true });
1382 model = table.data.item(0),
1385 table.data.model.prototype.sync = function (action) {
1390 table.removeRow(model.get('clientId'), { sync: true });
1395 "removeRow(model, { sync: true }) should trigger Model sync": function () {
1397 model = table.data.item(0),
1400 table.data.model.prototype.sync = function (action) {
1405 table.removeRow(model, { sync: true });
1412 model = table.data.item(0),
1417 table.data.model.prototype.sync = function (action) {
1429 model = table.data.item(0),
1434 table.data.model.prototype.sync = function (action) {
1439 table.removeRow(model.get('id'));
1446 model = table.data.item(0),
1451 table.data.model.prototype.sync = function (action) {
1456 table.removeRow(model.get('clientId'));
1461 "removeRow(model) with autoSync: true should trigger Model sync": function () {
1463 model = table.data.item(0),
1468 table.data.model.prototype.sync = function (action) {
1473 table.removeRow(model);