1
0
mirror of synced 2024-11-22 13:06:08 +03:00
select2/tests/helpers.js

22 lines
453 B
JavaScript
Raw Normal View History

// Restore the require/define
2015-01-22 22:49:39 +03:00
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;
};
define('qunit', function () {
return QUnit;
})