move gutterDecorations to session

This commit is contained in:
nightwing 2012-07-28 17:38:04 +04:00
commit 599c540c20
3 changed files with 42 additions and 21 deletions

View file

@ -875,26 +875,20 @@ var VirtualRenderer = function(container, theme) {
/**
* VirtualRenderer.addGutterDecoration(row, className) -> Void
* - row (Number): The row number
* - className (String): The class to add
*
* Adds `className` to the `row`, to be used for CSS stylings and whatnot.
* Deprecated (moved to EditSession)
**/
this.addGutterDecoration = function(row, className){
this.$gutterLayer.addGutterDecoration(row, className);
this.$loop.schedule(this.CHANGE_GUTTER);
};
/**
* VirtualRenderer.removeGutterDecoration(row, className)-> Void
* - row (Number): The row number
* - className (String): The class to add
*
* Removes `className` from the `row`.
* Deprecated (moved to EditSession)
**/
this.removeGutterDecoration = function(row, className){
this.$gutterLayer.removeGutterDecoration(row, className);
this.$loop.schedule(this.CHANGE_GUTTER);
};
/**