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) { ...@@ -336,7 +336,7 @@ baseEditorsApi.prototype.processSavedFile = function(url, downloadType) {
this.sendEvent(downloadType, url, function(hasError) { this.sendEvent(downloadType, url, function(hasError) {
}); });
} else { } else {
getFile(url); AscCommon.getFile(url);
} }
}; };
// Выставление интервала автосохранения (0 - означает, что автосохранения нет) // Выставление интервала автосохранения (0 - означает, что автосохранения нет)
......
"use strict"; "use strict";
(
/**
* @param {Window} window
* @param {undefined} undefined
*/
function (window, undefined) {
function FileHandler() { function FileHandler() {
this.get = function ( file ) { this.get = function ( file ) {
...@@ -40,3 +45,8 @@ function getFile( filePath ) { ...@@ -40,3 +45,8 @@ function getFile( filePath ) {
var fh = new FileHandler(); var fh = new FileHandler();
fh.get( filePath ); fh.get( filePath );
} }
//--------------------------------------------------------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