01461813d8
Now we are using `jQuery.noConflict()` in tests, so it should be slightly easier to detect when this happens next time. Tests just need to be written for the component. This closes https://github.com/select2/select2/issues/2985.
19 lines
404 B
JavaScript
19 lines
404 B
JavaScript
// Restore the require/define
|
|
var require = $.fn.select2.amd.require;
|
|
var define = $.fn.select2.amd.define;
|
|
|
|
// Disable jQuery's binding to $
|
|
jQuery.noConflict();
|
|
|
|
var Utils = require('select2/utils');
|
|
|
|
function MockContainer () {
|
|
MockContainer.__super__.constructor.call(this);
|
|
}
|
|
|
|
Utils.Extend(MockContainer, Utils.Observable);
|
|
|
|
MockContainer.prototype.isOpen = function () {
|
|
return this.isOpen;
|
|
};
|