Replace deprecated jQuery deferred.isResolved().

This commit is contained in:
Tim Abbott
2016-06-14 14:55:54 -07:00
parent c0e8f3f2bf
commit c7f0e66f7e

View File

@@ -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) {