File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change 719
719
720
720
noSuggestions : function ( ) {
721
721
var that = this ,
722
+ beforeRender = that . options . beforeRender ,
722
723
container = $ ( that . suggestionsContainer ) ,
723
724
noSuggestionsContainer = $ ( that . noSuggestionsContainer ) ;
724
725
727
728
// Some explicit steps. Be careful here as it easy to get
728
729
// noSuggestionsContainer removed from DOM if not detached properly.
729
730
noSuggestionsContainer . detach ( ) ;
730
- container . empty ( ) ; // clean suggestions if any
731
+
732
+ // clean suggestions if any
733
+ container . empty ( ) ;
731
734
container . append ( noSuggestionsContainer ) ;
732
735
736
+ if ( $ . isFunction ( beforeRender ) ) {
737
+ beforeRender . call ( that . element , container , that . suggestions ) ;
738
+ }
739
+
733
740
that . fixPosition ( ) ;
734
741
735
742
container . show ( ) ;
You can’t perform that action at this time.
0 commit comments