mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 13:09:21 +03:00
Back from Typescript to ES2015
This commit is contained in:
parent
a74a92638a
commit
40b3f929e9
16 changed files with 305 additions and 358 deletions
|
|
@ -8,7 +8,6 @@
|
|||
ko = require('ko'),
|
||||
|
||||
Utils = require('Common/Utils'),
|
||||
Spec = require('Common/Spec'),
|
||||
|
||||
AttachmentModel = require('Model/Attachment'),
|
||||
|
||||
|
|
@ -68,11 +67,11 @@
|
|||
}, this);
|
||||
|
||||
this.mimeType = ko.computed(function () {
|
||||
return Spec.mimeContentType(this.fileName());
|
||||
return Utils.mimeContentType(this.fileName());
|
||||
}, this);
|
||||
|
||||
this.fileExt = ko.computed(function () {
|
||||
return Spec.getFileExtension(this.fileName());
|
||||
return Utils.getFileExtension(this.fileName());
|
||||
}, this);
|
||||
|
||||
this.regDisposables([this.progressText, this.progressStyle, this.title, this.friendlySize, this.mimeType, this.fileExt]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue