1
0
Fork 0
fgdata/webgui/3rdparty/knockout-jqueryui/autocomplete.js
2015-02-04 21:05:55 +01:00

39 lines
1.1 KiB
JavaScript
Executable file

/*global define*/
define(
[
'./bindingHandler',
'./utils',
'jquery-ui/autocomplete'
],
function (BindingHandler, utils) {
'use strict';
var Autocomplete = function () {
/// <summary>Constructor.</summary>
BindingHandler.call(this, 'autocomplete');
this.options = ['appendTo', 'autoFocus', 'delay', 'disabled', 'minLength',
'position', 'source'];
if (utils.uiVersion.major === 1 && utils.uiVersion.minor === 8) {
this.events = ['change', 'close', 'create', 'focus', 'open', 'search',
'select'];
} else {
this.options.push('messages');
this.events = ['change', 'close', 'create', 'focus', 'open', 'response',
'search', 'select'];
}
};
Autocomplete.prototype = utils.createObject(BindingHandler.prototype);
Autocomplete.prototype.constructor = Autocomplete;
utils.register(Autocomplete);
return Autocomplete;
}
);