/* eslint-disable func-names, space-before-function-paren, wrap-iife, no-var, no-unused-expressions, no-cond-assign, no-sequences, comma-dangle, max-len */
/* global BlobGitignoreSelector */

(function() {
  this.BlobGitignoreSelectors = (function() {
    function BlobGitignoreSelectors(opts) {
      var ref;
      this.$dropdowns = (ref = opts.$dropdowns) != null ? ref : $('.js-gitignore-selector'), this.editor = opts.editor;
      this.$dropdowns.each((function(_this) {
        return function(i, dropdown) {
          var $dropdown;
          $dropdown = $(dropdown);
          return new BlobGitignoreSelector({
            pattern: /(.gitignore)/,
            data: $dropdown.data('data'),
            wrapper: $dropdown.closest('.js-gitignore-selector-wrap'),
            dropdown: $dropdown,
            editor: _this.editor
          });
        };
      })(this));
    }

    return BlobGitignoreSelectors;
  })();
}).call(window);
