Fixed info error ISSUE #252

This commit is contained in:
John McLear 2011-12-04 22:28:00 +00:00
parent c230e3db2d
commit 0810915f2c

View file

@ -96,7 +96,9 @@ function Ace2Editor()
}); });
editor.setEditable = pendingInit(function(newVal) editor.setEditable = pendingInit(function(newVal)
{ {
info.ace_setEditable(newVal); //window.console.log("yaya");
//window.console.log(newVal);
//info.ace_setEditable(newVal);
}); });
editor.getFormattedCode = function() editor.getFormattedCode = function()
{ {
@ -117,7 +119,9 @@ function Ace2Editor()
editor.setProperty = pendingInit(function(key, value) editor.setProperty = pendingInit(function(key, value)
{ {
info.ace_setProperty(key, value); if (info){
info.ace_setProperty(key, value);
}
}); });
editor.getDebugProperty = function(prop) editor.getDebugProperty = function(prop)
{ {