Sha256: 5099a571faab70c7579f2b28689570d38c9d23f4c71f880f5bb772f720e90216

Contents?: true

Size: 665 Bytes

Versions: 73

Compression:

Stored size: 665 Bytes

Contents

define([

], function () {
  function Query (decorated, $element, options) {
    if (options.get('debug') && window.console && console.warn) {
      console.warn(
        'Select2: The `query` option has been deprecated in favor of a ' +
        'custom data adapter that overrides the `query` method. Support ' +
        'will be removed for the `query` option in future versions of ' +
        'Select2.'
      );
    }

    decorated.call(this, $element, options);
  }

  Query.prototype.query = function (_, params, callback) {
    params.callback = callback;

    var query = this.options.get('query');

    query.call(null, params);
  };

  return Query;
});

Version data entries

73 entries across 73 versions & 7 rubygems

Version Path
card-1.96.0 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.95.3 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.95.2 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.95.1 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.95.0 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
adminlte_rails-0.1.0 vendor/assets/javascripts/adminlte/plugins/select2/src/js/select2/compat/query.js
card-1.94.1 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.94.0 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.13 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.12 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.11 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.10 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.9 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.8 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.7 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
jinda_lte-0.0.1 lib/generators/jinda_lte/templates/app/assets/jinda_assets/bower_components/select2/src/js/select2/compat/query.js
card-1.93.6 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.5 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.4 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js
card-1.93.3 mod/bootstrap/vendor/select2/src/js/select2/compat/query.js