@@ -1541,7 +1541,7 @@ return /******/ (function(modules) { // webpackBootstrap
15411541
15421542 var extend = angular . extend ;
15431543
1544- module . exports = function ( FileDirective ) {
1544+ module . exports = function ( $compile , FileDirective ) {
15451545 var FileSelect = ( function ( _FileDirective ) {
15461546 /**
15471547 * Creates instance of {FileSelect} object
@@ -1613,7 +1613,7 @@ return /******/ (function(modules) { // webpackBootstrap
16131613 this . uploader . addToQueue ( files , options , filters ) ;
16141614 if ( this . isEmptyAfterSelection ( ) ) {
16151615 this . element . prop ( "value" , null ) ;
1616- this . element . replaceWith ( this . element = this . element . clone ( true ) ) ; // IE fix
1616+ this . element . replaceWith ( $compile ( this . element . clone ( ) ) ( this . scope ) ) ; // IE fix
16171617 }
16181618 }
16191619 }
@@ -1625,7 +1625,7 @@ return /******/ (function(modules) { // webpackBootstrap
16251625 return FileSelect ;
16261626 } ;
16271627
1628- module . exports . $inject = [ "FileDirective" ] ;
1628+ module . exports . $inject = [ "$compile" , " FileDirective"] ;
16291629
16301630/***/ } ,
16311631/* 8 */
@@ -1908,7 +1908,8 @@ return /******/ (function(modules) { // webpackBootstrap
19081908
19091909 var object = new FileSelect ( {
19101910 uploader : uploader ,
1911- element : element
1911+ element : element ,
1912+ scope : scope
19121913 } ) ;
19131914
19141915 object . getOptions = $parse ( attributes . options ) . bind ( object , scope ) ;
@@ -1995,5 +1996,4 @@ return /******/ (function(modules) { // webpackBootstrap
19951996/***/ }
19961997/******/ ] )
19971998} ) ;
1998- ;
1999- //# sourceMappingURL=angular-file-upload.js.map
1999+ ;
0 commit comments