cleaned up mutators

This commit is contained in:
kay.one 2013-06-24 21:51:17 -07:00
commit 28c93aa947
5 changed files with 11 additions and 33 deletions

View file

@ -5,12 +5,6 @@ define(
'sugar'
], function (Backbone) {
return Backbone.Model.extend({
mutators: {
freeSpaceString: function () {
return this.get('freeSpace').bytes(2) + ' Free';
}
},
defaults: {
freeSpace: 0
}

View file

@ -2,7 +2,7 @@
{{path}}
</td>
<td class="span3 x-folder clickable">
<span>{{freeSpaceString}}</span>
<span>{{Bytes freeSpace}}</span>
</td>
<td class="span1 nz-row-action">
<div class="btn btn-danger icon-minus x-remove">