mirror of
https://github.com/zulip/zulip.git
synced 2025-11-14 02:48:00 +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
|
// 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 first settings page load. build_stream_list then adds a callback to
|
||||||
// the promise, which in most cases will already be resolved.
|
// the promise, which in most cases will already be resolved.
|
||||||
if (!_streams_defered.isResolved()) {
|
if (_streams_defered.state() !== "resolved") {
|
||||||
channel.get({
|
channel.get({
|
||||||
url: '/json/streams',
|
url: '/json/streams',
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
|
|||||||
Reference in New Issue
Block a user