forked from zulip/zulip-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
content: Save some work by avoiding
classes.contains
in many cases
It turns out that `classes.contains` instantiates a Set every time it's called. That's unfortunate. So, remove some of this work by just checking the class string (`className`) directly, in the case where we expect just one class. When we expect two or more classes, we'll want a check that doesn't enforce a particular order, so perhaps we'll use a regular expression for those, or something, in later work. See zulip#497. Fixes-partly: zulip#497
- Loading branch information
1 parent
95ca687
commit 96ee7a9
Showing
1 changed file
with
14 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters