common/js/nooline/models/content-snippet/commit-version.js
// Boilerplate for AMD and CJS isomorphism.
define('common/js/nooline/models/content-snippet/commit-version',
[],
function () {
var N = this.Nooline;
N.Models.ContentSnippet.prototype.commitVersion = function (error) {
var snippet = this.get('index') + '.json';
var update = 'Snippet updated: ' + snippet;
var file = 'content/snippets/' + snippet;
if (error) {
console.error(error);
}
console.log(update);
if (this.collection) {
this.collection.parent.get('filesUpdated').push(file);
}
return this.notifySaved();
};
});