Commit 45ae34f8 authored by Bryce Johnson's avatar Bryce Johnson

Properly scope BlobCiYamlSelector and BlobCiYamlSelectors.

parent cfb03b3d
/*= require blob/template_selector */
((global) => {
class BlobCiYamlSelector extends TemplateSelector {
class BlobCiYamlSelector extends TemplateSelector {
constructor(...args) {
super(...args);
}
......@@ -8,9 +9,11 @@ class BlobCiYamlSelector extends TemplateSelector {
requestFile(query) {
return Api.gitlabCiYml(query.name, this.requestFileSuccess.bind(this));
};
};
};
global.BlobCiYamlSelector = BlobCiYamlSelector;
class BlobCiYamlSelectors {
class BlobCiYamlSelectors {
constructor(opts) {
this.$dropdowns = opts.$dropdowns || $('.js-gitlab-ci-yml-selector');
this.editor = opts.editor;
......@@ -29,4 +32,8 @@ class BlobCiYamlSelectors {
});
});
}
}
}
global.BlobCiYamlSelectors = BlobCiYamlSelectors;
})(window.gl || (window.gl = {}));
......@@ -29,7 +29,7 @@
new BlobGitignoreSelectors({
editor: this.editor
});
new BlobCiYamlSelectors({
new gl.BlobCiYamlSelectors({
editor: this.editor
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment