Commit 907affe0 authored by Alexander.Trofimov's avatar Alexander.Trofimov

common/downloaderfiles to function-closure

parent cddb7e68
......@@ -336,7 +336,7 @@ baseEditorsApi.prototype.processSavedFile = function(url, downloadType) {
this.sendEvent(downloadType, url, function(hasError) {
});
} else {
getFile(url);
AscCommon.getFile(url);
}
};
// Выставление интервала автосохранения (0 - означает, что автосохранения нет)
......
"use strict";
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
function FileHandler() {
this.get = function ( file ) {
......@@ -39,4 +44,9 @@ function FileHandler() {
function getFile( filePath ) {
var fh = new FileHandler();
fh.get( filePath );
}
\ No newline at end of file
}
//--------------------------------------------------------export----------------------------------------------------
window['AscCommon'] = window['AscCommon'] || {};
window['AscCommon'].getFile = getFile;
})(window);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment