Skip to content

Commit

Permalink
Add method to generate an empty postag
Browse files Browse the repository at this point in the history
  • Loading branch information
LFDM committed May 8, 2014
1 parent c789573 commit da8b38e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/js/arethusa.morph/morph.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ angular.module('arethusa.morph').service('morph', function(state, configurator)
form.attributes = attrs;
};

// Probably not useful to calculate this everytime...
this.emptyPostag = function() {
return arethusaUtil.map(this.postagSchema, function(el) {
return '-';
}).join('');
};

this.attributesToPostag = function(attrs) {
var postag = "";
var that = this;
Expand Down

0 comments on commit da8b38e

Please sign in to comment.