 
 			@editor.on "changeSession", (e) =>
 				@highlightedWordManager.reset()
+				if @inProgressRequest?
+					@inProgressRequest.abort()
 
 				if @$scope.spellCheckEnabled and @$scope.spellCheckLanguage and @$scope.spellCheckLanguage != ""
 					@runSpellCheckSoon(200)

			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 = []

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