Commit 416d2198 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Move classes into its own file

parent 3f399fe1
...@@ -73,16 +73,3 @@ class ProtectedBranchDropdown { ...@@ -73,16 +73,3 @@ class ProtectedBranchDropdown {
this.$dropdownFooter.toggleClass('hidden', !branchName); this.$dropdownFooter.toggleClass('hidden', !branchName);
} }
} }
class ProtectedBranchDropdowns {
constructor(options) {
const { $dropdowns, onSelect } = options;
$dropdowns.each((i, el) => {
new ProtectedBranchDropdown({
$dropdown: $(el),
onSelect: onSelect
});
});
}
}
class ProtectedBranchDropdowns {
constructor(options) {
const { $dropdowns, onSelect } = options;
$dropdowns.each((i, el) => {
new ProtectedBranchDropdown({
$dropdown: $(el),
onSelect: onSelect
});
});
}
}
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