We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 14810a1 commit 91dc0d1Copy full SHA for 91dc0d1
src/jquery.autocomplete.js
@@ -952,7 +952,7 @@
952
};
953
954
// Create chainable jQuery plugin:
955
- $.fn.autocomplete = $.fn.devbridgeAutocomplete = function (options, args) {
+ $.fn.devbridgeAutocomplete = function (options, args) {
956
var dataKey = 'autocomplete';
957
// If function invoked without argument return
958
// instance of the first matched element:
@@ -978,4 +978,9 @@
978
}
979
});
980
981
+
982
+ // Don't overwrite if it already exists
983
+ if (!$.fn.autocomplete) {
984
+ $.fn.autocomplete = $.fn.devbridgeAutocomplete;
985
+ }
986
}));
0 commit comments