aboutsummaryrefslogtreecommitdiff
path: root/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js
diff options
context:
space:
mode:
authorAnanya Sen2012-06-26 13:04:04 -0700
committerAnanya Sen2012-06-26 13:04:04 -0700
commit6075916ef18dc4a8cbea41c941d2d0b519360262 (patch)
tree7ee9798bed5c722f5f0bba92626aaf3348fe660b /js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js
parentdea90d1bb0b903a7497cdf7de9ae60799e60d5b1 (diff)
downloadninja-6075916ef18dc4a8cbea41c941d2d0b519360262.tar.gz
fixed code hinting and autocompletion bug
Signed-off-by: Ananya Sen <Ananya.Sen@motorola.com>
Diffstat (limited to 'js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js')
-rw-r--r--js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js b/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js
index 13c9a705..04b509a6 100644
--- a/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js
+++ b/js/code-editor/ui/code-editor-view-options.reel/code-editor-view-options.js
@@ -121,6 +121,12 @@ exports.CodeEditorViewOptions = Montage.create(Component, {
121 oneway : false 121 oneway : false
122 }); 122 });
123 123
124 Object.defineBinding(this.codeCompleteCheck , "checked", {
125 boundObject: this.application.ninja.codeEditorController,
126 boundObjectPropertyPath: "automaticCodeComplete",
127 oneway : false
128 });
129
124 } 130 }
125 }, 131 },
126 132
@@ -137,6 +143,8 @@ exports.CodeEditorViewOptions = Montage.create(Component, {
137 } else { 143 } else {
138 this.autoCompleteLabel.classList.remove("disabled"); 144 this.autoCompleteLabel.classList.remove("disabled");
139 } 145 }
146
147 this.codeCompleteCheck.checked = false;
140 } 148 }
141 }, 149 },
142 150