Bugfix for this being wrong in editorInfo.ace_performDocumentApplyAttributesToRange

This commit is contained in:
Egil Moeller 2012-04-09 16:22:09 +02:00
parent 9b1536ac10
commit d2c180c91b

View file

@ -5389,7 +5389,9 @@ function Ace2Inner(){
// Init documentAttributeManager
documentAttributeManager = new AttributeManager(rep, performDocumentApplyChangeset);
editorInfo.ace_performDocumentApplyAttributesToRange = documentAttributeManager.setAttributesOnRange;
editorInfo.ace_performDocumentApplyAttributesToRange = function () {
return documentAttributeManager.setAttributesOnRange.apply(documentAttributeManager, arguments);
};
$(document).ready(function(){
doc = document; // defined as a var in scope outside