You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
!function(a,b){"use strict";if("undefined"!=typeof module&&module.exports&&"function"==typeof require)b(require("ractive"),require("jquery"));else if("function"==typeof define&&define.amd)define(["ractive","jquery"],b);else{if(!a.Ractive||!a.jQuery)throw new Error("Could not find Ractive or jQuery! They must be loaded before the ractive-decorators-select2 plugin");b(a.Ractive,a.jQuery)}}("undefined"!=typeof window?window:this,function(a,b){"use strict";var c;c=function(a,d){var e,f=a._ractive.root,g=!1,h={};if(d){if(!c.type.hasOwnProperty(d))throw new Error('Ractive Select2 type "'+d+'" is not defined!');h=c.type[d],"function"==typeof h&&(h=h.call(this,a))}return a._ractive.binding&&(e=f.observe(a._ractive.binding.keypath.str,function(c){g||(g=!0,window.setTimeout(function(){""===c&&b(a).select2("val",""),b(a).change(),g=!1},0))})),b(a).select2(h).on("change",function(){g||(g=!0,f.updateModel(),g=!1)}),{teardown:function(){b(a).select2("destroy"),e&&e.cancel()}}},c.type={},a.decorators.select2=c});