2013-03-29 19:17:03 +00:00
|
|
|
"use strict";
|
2013-06-21 05:19:41 +00:00
|
|
|
define(
|
|
|
|
[
|
|
|
|
'backbone',
|
|
|
|
'sugar'
|
|
|
|
], function (Backbone) {
|
|
|
|
return Backbone.Model.extend({
|
|
|
|
mutators: {
|
|
|
|
freeSpaceString: function () {
|
|
|
|
return this.get('freeSpace').bytes(2) + " Free";
|
|
|
|
}
|
|
|
|
},
|
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
|
|
|
});
|