refactor code

This commit is contained in:
MaysWind 2016-06-26 21:40:56 +08:00
parent 6406e6816b
commit c526d323be

View file

@ -1,8 +1,8 @@
(function () { (function () {
'use strict'; 'use strict';
angular.module('ariaNg').factory('ariaNgFileService', ['ariaNgCommonService', function (ariaNgCommonService) { angular.module('ariaNg').factory('ariaNgFileService', ['$window', 'ariaNgCommonService', function ($window, ariaNgCommonService) {
var isSupportFileReader = !!FileReader; var isSupportFileReader = !!$window.FileReader;
var getAllowedExtensions = function (fileFilter) { var getAllowedExtensions = function (fileFilter) {
var extensions = []; var extensions = [];