mirror of
https://github.com/zulip/zulip.git
synced 2025-11-13 18:36:36 +00:00
Replace deprecated jQuery deferred.isResolved().
This commit is contained in:
@@ -132,7 +132,7 @@ exports.setup_page = function () {
|
||||
// at page load. This promise will be resolved with a list of streams after
|
||||
// the first settings page load. build_stream_list then adds a callback to
|
||||
// the promise, which in most cases will already be resolved.
|
||||
if (!_streams_defered.isResolved()) {
|
||||
if (_streams_defered.state() !== "resolved") {
|
||||
channel.get({
|
||||
url: '/json/streams',
|
||||
success: function (data) {
|
||||
|
||||
Reference in New Issue
Block a user