@@ -1541,7 +1541,7 @@ return /******/ (function(modules) { // webpackBootstrap
1541
1541
1542
1542
var extend = angular . extend ;
1543
1543
1544
- module . exports = function ( FileDirective ) {
1544
+ module . exports = function ( $compile , FileDirective ) {
1545
1545
var FileSelect = ( function ( _Fil
8000
eDirective ) {
1546
1546
/**
1547
1547
* Creates instance of {FileSelect} object
@@ -1613,7 +1613,7 @@ return /******/ (function(modules) { // webpackBootstrap
1613
1613
this . uploader . addToQueue ( files , options , filters ) ;
1614
1614
if ( this . isEmptyAfterSelection ( ) ) {
1615
1615
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
1617
1617
}
1618
1618
}
1619
1619
}
@@ -1625,7 +1625,7 @@ return /******/ (function(modules) { // webpackBootstrap
1625
1625
return FileSelect ;
1626
1626
} ;
1627
1627
1628
- module . exports . $inject = [ "FileDirective" ] ;
1628
+ module . exports . $inject = [ "$compile" , " FileDirective"] ;
1629
1629
1630
1630
/***/ } ,
1631
1631
/* 8 */
@@ -1908,7 +1908,8 @@ return /******/ (function(modules) { // webpackBootstrap
1908
1908
1909
1909
var object = new FileSelect ( {
1910
1910
uploader : uploader ,
1911
- element : element
1911
+ element : element ,
1912
+ scope : scope
1912
1913
} ) ;
1913
1914
1914
1915
object . getOptions = $parse ( attributes . options ) . bind ( object , scope ) ;
@@ -1995,5 +1996,4 @@ return /******/ (function(modules) { // webpackBootstrap
1995
1996
/***/ }
1996
1997
/******/ ] )
1997
1998
} ) ;
1998
- ;
1999
- //# sourceMappingURL=angular-file-upload.js.map
1999
+ ;
0 commit comments