fix for setReadOnly

This commit is contained in:
Robert Krahn 2013-03-17 04:40:11 -07:00
commit fe3e92a3f9

View file

@ -2210,7 +2210,8 @@ config.defineOptions(Editor.prototype, "editor", {
readOnly: {
set: function(readOnly) {
this.textInput.setReadOnly(readOnly);
this.renderer.$cursorLayer.setBlinking(!readOnly);
var cursorLayer = this.renderer.$cursorLayer;
cursorLayer && cursorLayer.setBlinking(!readOnly);
},
initialValue: false
},