aboutsummaryrefslogtreecommitdiff
path: root/js/controllers
diff options
context:
space:
mode:
authorAnanya Sen2012-04-19 10:38:43 -0700
committerAnanya Sen2012-04-19 10:38:43 -0700
commit8cd6c76aabb4c75ab63f8d46b7e89bddbcbfe2a7 (patch)
tree3a4b2884e2ccc1dc45884ca12dfecebd5b6ec324 /js/controllers
parentea4385add0e9087487ccded929c2d6674d326db8 (diff)
downloadninja-8cd6c76aabb4c75ab63f8d46b7e89bddbcbfe2a7.tar.gz
- fixed the text cursor
- code cleanup Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/controllers')
-rw-r--r--js/controllers/code-editor-controller.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/controllers/code-editor-controller.js b/js/controllers/code-editor-controller.js
index 2302730c..8757dceb 100644
--- a/js/controllers/code-editor-controller.js
+++ b/js/controllers/code-editor-controller.js
@@ -199,5 +199,18 @@ var CodeEditorController = exports.CodeEditorController = Montage.create(Compone
199 value: function(){ 199 value: function(){
200 this.application.ninja.documentController.activeDocument.editor.setOption("theme", this.editorTheme); 200 this.application.ninja.documentController.activeDocument.editor.setOption("theme", this.editorTheme);
201 } 201 }
202 },
203
204 applySettings:{
205 value:function(){
206 var codeLineElem = null, i=0;
207 //set theme
208 this.handleThemeSelection();
209 //check autocomplete support
210 this.handleCodeCompletionSupport(this.application.ninja.documentController.activeDocument.editor.getOption("mode"));
211 //set zoom
212 codeLineElem = this.application.ninja.documentController.activeDocument.container.getElementsByClassName("CodeMirror-lines")[0];
213 codeLineElem.style.fontSize = ""+this._editorFont+"px";
214 }
202 } 215 }
203}); \ No newline at end of file 216}); \ No newline at end of file