: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
S2.define('pumselect2/data/base',[
function BaseAdapter ($element, options) {
BaseAdapter.__super__.constructor.call(this);
Utils.Extend(BaseAdapter, Utils.Observable);
BaseAdapter.prototype.current = function (callback) {
throw new Error('The `current` method must be defined in child classes.');
BaseAdapter.prototype.query = function (params, callback) {
throw new Error('The `query` method must be defined in child classes.');
BaseAdapter.prototype.bind = function (container, $container) {
// Can be implemented in subclasses
BaseAdapter.prototype.destroy = function () {
// Can be implemented in subclasses
BaseAdapter.prototype.generateResultId = function (container, data) {
var id = container.id + '-result-';
id += Utils.generateChars(4);
id += '-' + data.id.toString();
id += '-' + Utils.generateChars(4);
S2.define('pumselect2/data/select',[
], function (BaseAdapter, Utils, $) {
function SelectAdapter ($element, options) {
this.$element = $element;
SelectAdapter.__super__.constructor.call(this);
Utils.Extend(SelectAdapter, BaseAdapter);
SelectAdapter.prototype.current = function (callback) {
this.$element.find(':selected').each(function () {