[#349,transform][s]: remove transform view and associated code - fixes #349.

This commit is contained in:
Rufus Pollock
2013-05-04 22:13:27 +01:00
parent 6560aa98e1
commit fc79518ba5
13 changed files with 0 additions and 559 deletions

View File

@@ -159,20 +159,6 @@ my.Dataset = Backbone.Model.extend({
return this._store.save(this._changes, this.toJSON());
},
transform: function(editFunc) {
var self = this;
if (!this._store.transform) {
alert('Transform is not supported with this backend: ' + this.get('backend'));
return;
}
this.trigger('recline:flash', {message: "Updating all visible docs. This could take a while...", persist: true, loader: true});
this._store.transform(editFunc).done(function() {
// reload data as records have changed
self.query();
self.trigger('recline:flash', {message: "Records updated successfully"});
});
},
// ### query
//
// AJAX method with promise API to get records from the backend.