script: load select2
(function() {
  $.fn.select2.defaults.set("theme", "bootstrap");

  decko.slotReady(function(slot) {
    slot.find('select:not(._no-select2)').each(function(i) {
      var opts;
      opts = {
        dropdownAutoWidth: "true",
        containerCssClass: ":all:",
        width: "auto"
      };
      if ($(this).hasClass("tags")) {
        opts.tags = "true";
      }
      return $(this).select2(opts);
    });
    return $('.colorpicker-component').colorpicker();
  });

}).call(this);