Fix things so that they (hopefully) don't break under latest Q

This commit is contained in:
Simon Kornblith 2013-02-18 16:05:58 -05:00
parent ee0a20acf8
commit 6b2bbf80e1
6 changed files with 9 additions and 9 deletions

View File

@ -568,7 +568,7 @@ var Zotero_Citation_Dialog = new function () {
io.preview().then(function(preview) {
_originalHTML = preview;
editor.value = text;
}).end();
}).done();
} else {
_updatePreview();
}

View File

@ -312,7 +312,7 @@ var Zotero_QuickFormat = new function () {
}
_updateItemList(citedItems, citedItemsMatchingSearch, searchResultIDs, isAsync);
}).end();
}).done();
if(!completed) {
// We are going to have to wait until items have been retrieved from the document.

View File

@ -493,7 +493,7 @@ Zotero_RecognizePDF.ItemRecognizer.prototype._recognizeItem = function() {
}).fin(function() {
// scroll to this item
me._progressWindow.document.getElementById("tree").treeBoxObject.scrollToRow(Math.max(0, me._itemTotal-me._items.length-5));
}).end();
}).done();
}
/**

View File

@ -301,7 +301,7 @@ Zotero.Integration = new function() {
}
inProgress = Zotero.Integration.currentWindow = false;
}).end();
}).done();
};
};
@ -1833,7 +1833,7 @@ Zotero.Integration.CitationEditInterface.prototype = {
*/
"_updateSession":function _updateSession(resolveErrors) {
var me = this;
if(this._sessionUpdatePromise && this._sessionUpdatePromise.isResolved()) {
if(this._sessionUpdatePromise && this._sessionUpdatePromise.isFulfilled()) {
// Session has already been updated. If we were deferring resolving an error,
// and we are supposed to resolve it now, then do that
if(this._sessionUpdateError) {
@ -1881,7 +1881,7 @@ Zotero.Integration.CitationEditInterface.prototype = {
me._sessionUpdateDeferreds[i].reject(err);
}
throw err;
}).end();
}).done();
}
return deferred.promise;
@ -1916,7 +1916,7 @@ Zotero.Integration.CitationEditInterface.prototype = {
* Receives a number from 0 to 100 indicating current status.
*/
"accept":function(progressCallback) {
if(!this._acceptDeferred.promise.isResolved()) {
if(!this._acceptDeferred.promise.isFulfilled()) {
this._acceptDeferred.resolve(progressCallback);
}
},

View File

@ -212,7 +212,7 @@ Zotero.Sync.Storage.Queue.prototype.addRequest = function (request, highPriority
Zotero.Sync.Storage.Queue.prototype.start = function () {
if (!this._deferred || this._deferred.promise.isResolved()) {
if (!this._deferred || this._deferred.promise.isFulfilled()) {
Zotero.debug("Creating deferred for queue " + this.name);
this._deferred = Q.defer();
}

View File

@ -3433,7 +3433,7 @@ var ZoteroPane = new function()
Zotero.debug(e, 1);
ZoteroPane_Local.syncAlert(e);
})
.end();
.done();
}
}
}