Typescript (first look)

This commit is contained in:
RainLoop Team 2016-06-25 01:18:59 +03:00
parent 3217303a65
commit a74a92638a
17 changed files with 356 additions and 289 deletions

View file

@ -8,6 +8,7 @@
ko = require('ko'),
Utils = require('Common/Utils'),
Spec = require('Common/Spec'),
AttachmentModel = require('Model/Attachment'),
@ -67,11 +68,11 @@
}, this);
this.mimeType = ko.computed(function () {
return Utils.mimeContentType(this.fileName());
return Spec.mimeContentType(this.fileName());
}, this);
this.fileExt = ko.computed(function () {
return Utils.getFileExtension(this.fileName());
return Spec.getFileExtension(this.fileName());
}, this);
this.regDisposables([this.progressText, this.progressStyle, this.title, this.friendlySize, this.mimeType, this.fileExt]);