提交 31f81c65 编写于 作者: J James Baicoianu

Remove unnecessary window references

上级 1e2dcbd8
......@@ -70,9 +70,9 @@ Object.assign( FileLoader.prototype, {
var isBase64 = !! dataUriRegexResult[ 2 ];
var data = dataUriRegexResult[ 3 ];
data = window.decodeURIComponent( data );
data = decodeURIComponent( data );
if ( isBase64 ) data = window.atob( data );
if ( isBase64 ) data = atob( data );
try {
......@@ -126,7 +126,7 @@ Object.assign( FileLoader.prototype, {
}
// Wait for next browser tick like standard XMLHttpRequest event dispatching does
window.setTimeout( function () {
setTimeout( function () {
if ( onLoad ) onLoad( response );
......@@ -137,7 +137,7 @@ Object.assign( FileLoader.prototype, {
} catch ( error ) {
// Wait for next browser tick like standard XMLHttpRequest event dispatching does
window.setTimeout( function () {
setTimeout( function () {
if ( onError ) onError( error );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册