From 0810915f2c708b54b93dda0ab5364242679a4aef Mon Sep 17 00:00:00 2001 From: John McLear Date: Sun, 4 Dec 2011 22:28:00 +0000 Subject: [PATCH] Fixed info error ISSUE #252 --- static/js/ace.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/static/js/ace.js b/static/js/ace.js index 27899aaab..08719fcdf 100644 --- a/static/js/ace.js +++ b/static/js/ace.js @@ -96,7 +96,9 @@ function Ace2Editor() }); editor.setEditable = pendingInit(function(newVal) { - info.ace_setEditable(newVal); + //window.console.log("yaya"); + //window.console.log(newVal); + //info.ace_setEditable(newVal); }); editor.getFormattedCode = function() { @@ -117,7 +119,9 @@ function Ace2Editor() editor.setProperty = pendingInit(function(key, value) { - info.ace_setProperty(key, value); + if (info){ + info.ace_setProperty(key, value); + } }); editor.getDebugProperty = function(prop) {