2013-06-22 06:24:24 +00:00
|
|
|
'use strict';
|
2013-06-21 05:19:41 +00:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'backbone',
|
|
|
|
'sugar'
|
|
|
|
], function (Backbone) {
|
|
|
|
return Backbone.Model.extend({
|
|
|
|
mutators: {
|
|
|
|
freeSpaceString: function () {
|
2013-06-22 06:24:24 +00:00
|
|
|
return this.get('freeSpace').bytes(2) + ' Free';
|
2013-06-21 05:19:41 +00:00
|
|
|
}
|
|
|
|
},
|
2013-02-14 02:28:56 +00:00
|
|
|
|
2013-06-21 05:19:41 +00:00
|
|
|
defaults: {
|
|
|
|
freeSpace: 0
|
|
|
|
}
|
|
|
|
});
|
2013-02-14 02:28:56 +00:00
|
|
|
});
|