ko cleaning up

This commit is contained in:
RainLoop Team 2014-10-04 15:58:01 +04:00
parent fcac46f60e
commit d8321a522e
25 changed files with 396 additions and 131 deletions

View file

@ -5,10 +5,13 @@
var
window = require('window'),
_ = require('_'),
Globals = require('Common/Globals'),
Utils = require('Common/Utils'),
LinkBuilder = require('Common/LinkBuilder')
LinkBuilder = require('Common/LinkBuilder'),
AbstractModel = require('Knoin/AbstractModel')
;
/**
@ -16,6 +19,8 @@
*/
function AttachmentModel()
{
AbstractModel.call(this, 'AttachmentModel');
this.mimeType = '';
this.fileName = '';
this.estimatedSize = 0;
@ -31,6 +36,8 @@
this.mimeIndex = '';
}
_.extend(AttachmentModel.prototype, AbstractModel.prototype);
/**
* @static
* @param {AjaxJsonAttachment} oJsonAttachment