File tree 3 files changed +9
-8
lines changed
3 files changed +9
-8
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ Change Log: `bootstrap-fileinput`
3
3
4
4
## version 5.0.7
5
5
6
- ** Date:** _ under development _
6
+ ** Date:** 17-Nov-2019
7
7
8
+ - (enh #1496 ): Correct isEmpty check for functions.
9
+ - (enh #1485 ): Update Portugese Brazilian Translations.
8
10
- (enh #1479 ): Methods updated:
9
11
- Include ` addToStack ` method.
10
12
- Remove ` updateStack ` method
Original file line number Diff line number Diff line change 211
211
$modal . appendTo ( $body ) ;
212
212
}
213
213
} ,
214
- // https://stackoverflow.com/a/6000016
215
214
isFunction : function ( v ) {
216
- return ! ! ( v && v . constructor && v . call && v . apply ) ;
215
+ return typeof v === 'function' ;
217
216
} ,
218
217
isEmpty : function ( value , trim ) {
219
- return value === undefined || value === null || ( ! $h . isFunction ( value ) && ( value . length === 0 || ( trim && $ . trim ( value ) === '' ) ) ) ;
218
+ return value === undefined || value === null || ( ! $h . isFunction ( value ) && ( value . length === 0 || ( trim && $ . trim ( value ) === '' ) ) ) ;
220
219
} ,
221
220
isArray : function ( a ) {
222
221
return Array . isArray ( a ) || Object . prototype . toString . call ( a ) === '[object Array]' ;
You can’t perform that action at this time.
0 commit comments