ensure classes declared outside an IIFE are properties of window
This commit is contained in:
parent
b70b962892
commit
aac4aa1094
|
@ -66,3 +66,5 @@ class ListIssue {
|
|||
return Vue.http.patch(url, data);
|
||||
}
|
||||
}
|
||||
|
||||
window.ListIssue = ListIssue;
|
||||
|
|
|
@ -9,3 +9,5 @@ class ListLabel {
|
|||
this.priority = (obj.priority !== null) ? obj.priority : Infinity;
|
||||
}
|
||||
}
|
||||
|
||||
window.ListLabel = ListLabel;
|
||||
|
|
|
@ -145,3 +145,5 @@ class List {
|
|||
});
|
||||
}
|
||||
}
|
||||
|
||||
window.List = List;
|
||||
|
|
|
@ -5,3 +5,5 @@ class ListMilestone {
|
|||
this.title = obj.title;
|
||||
}
|
||||
}
|
||||
|
||||
window.ListMilestone = ListMilestone;
|
||||
|
|
|
@ -7,3 +7,5 @@ class ListUser {
|
|||
this.avatar = user.avatar_url;
|
||||
}
|
||||
}
|
||||
|
||||
window.ListUser = ListUser;
|
||||
|
|
|
@ -63,4 +63,6 @@ class BoardService {
|
|||
issue
|
||||
});
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
window.BoardService = BoardService;
|
||||
|
|
|
@ -89,3 +89,5 @@ class DiscussionModel {
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
window.DiscussionModel = DiscussionModel;
|
||||
|
|
|
@ -8,3 +8,5 @@ class NoteModel {
|
|||
this.resolved_by = resolved_by;
|
||||
}
|
||||
}
|
||||
|
||||
window.NoteModel = NoteModel;
|
||||
|
|
|
@ -20,3 +20,5 @@ class EnvironmentsService {
|
|||
return this.environments.get();
|
||||
}
|
||||
}
|
||||
|
||||
window.EnvironmentsService = EnvironmentsService;
|
||||
|
|
|
@ -75,3 +75,5 @@ class ProtectedBranchDropdown {
|
|||
this.$dropdownFooter.toggleClass('hidden', !branchName);
|
||||
}
|
||||
}
|
||||
|
||||
window.ProtectedBranchDropdown = ProtectedBranchDropdown;
|
||||
|
|
Loading…
Reference in New Issue