ensure classes declared outside an IIFE are properties of window

This commit is contained in:
Mike Greiling 2016-12-14 00:51:53 -06:00
parent b70b962892
commit aac4aa1094
10 changed files with 21 additions and 1 deletions

View File

@ -66,3 +66,5 @@ class ListIssue {
return Vue.http.patch(url, data);
}
}
window.ListIssue = ListIssue;

View File

@ -9,3 +9,5 @@ class ListLabel {
this.priority = (obj.priority !== null) ? obj.priority : Infinity;
}
}
window.ListLabel = ListLabel;

View File

@ -145,3 +145,5 @@ class List {
});
}
}
window.List = List;

View File

@ -5,3 +5,5 @@ class ListMilestone {
this.title = obj.title;
}
}
window.ListMilestone = ListMilestone;

View File

@ -7,3 +7,5 @@ class ListUser {
this.avatar = user.avatar_url;
}
}
window.ListUser = ListUser;

View File

@ -63,4 +63,6 @@ class BoardService {
issue
});
}
};
}
window.BoardService = BoardService;

View File

@ -89,3 +89,5 @@ class DiscussionModel {
return false;
}
}
window.DiscussionModel = DiscussionModel;

View File

@ -8,3 +8,5 @@ class NoteModel {
this.resolved_by = resolved_by;
}
}
window.NoteModel = NoteModel;

View File

@ -20,3 +20,5 @@ class EnvironmentsService {
return this.environments.get();
}
}
window.EnvironmentsService = EnvironmentsService;

View File

@ -75,3 +75,5 @@ class ProtectedBranchDropdown {
this.$dropdownFooter.toggleClass('hidden', !branchName);
}
}
window.ProtectedBranchDropdown = ProtectedBranchDropdown;