Skip to content

Commit

Permalink
Compatibility fixes with ValueView 0.10.0
Browse files Browse the repository at this point in the history
minTermLength is now an option:

wikimedia/data-values-value-view@7d9fd13

and search no longer takes / needs event:

wikimedia/data-values-value-view@814ed21
  • Loading branch information
aude committed Jan 13, 2015
1 parent d29d2c9 commit 0b61fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/ext.PropertySuggester.EntitySelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@
var focusHandler = function( event ) {
if( self._useSuggester() && self.element.val() === ''
&& !self.options.menu.element.is( ":visible" ) ) {
self._minTermLength = 0;
self.options.minTermLength = 0;
self._cache = {}; // is done in the entityselector on eachchange too
self.search( event );
self.search();
}
};
self.element.on( 'focus', focusHandler );
Expand Down

0 comments on commit 0b61fbe

Please sign in to comment.