Our usual style for cases like this is `= new $.Deferred().resolve(doc.getText())`.