mirror of https://github.com/zulip/zulip.git
starred_messages: Rename count() to get_count().
It would conflict with the count variable after migration to an ES6 module. Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
03b05de7d5
commit
1d1eed2f17
|
@ -28,7 +28,7 @@ exports.remove = function (ids) {
|
||||||
exports.rerender_ui();
|
exports.rerender_ui();
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.count = function () {
|
exports.get_count = function () {
|
||||||
return exports.starred_ids.size;
|
return exports.starred_ids.size;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -37,7 +37,7 @@ exports.get_starred_msg_ids = function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.rerender_ui = function () {
|
exports.rerender_ui = function () {
|
||||||
let count = exports.count();
|
let count = exports.get_count();
|
||||||
|
|
||||||
if (!page_params.starred_message_counts) {
|
if (!page_params.starred_message_counts) {
|
||||||
// This essentially hides the count
|
// This essentially hides the count
|
||||||
|
|
Loading…
Reference in New Issue