 					callback null, data
 				error: (xhr, status, error) ->
 					callback error
-			$.ajax options
+			return $.ajax options

			if not words.length
				displayResult highlights
			else
				@apiRequest "/check", {language: language, words: words}, (error, result) =>
					if error? or !result? or !result.misspellings?
						return null
					mispelled = []


			@editor.on "changeSession", (e) =>
				@highlightedWordManager.reset()
				if @inProgressRequest?
					@inProgressRequest.abort()

				if @$scope.spellCheckEnabled and @$scope.spellCheckLanguage and @$scope.spellCheckLanguage != ""
					@runSpellCheckSoon(200)
