Commit c7c9459b authored by 张博's avatar 张博

disable 时触发 readonly 事件方便外部处理相应情况

parent 8abc9f73
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
define(function(require, exports, module) { define(function(require, exports, module) {
var kity = require('./kity'); var kity = require('./kity');
var Minder = require('./minder'); var Minder = require('./minder');
var MinderEvent = require('./event');
Minder.registerInitHook(function(options) { Minder.registerInitHook(function(options) {
if (options.readOnly) { if (options.readOnly) {
...@@ -39,6 +40,14 @@ define(function(require, exports, module) { ...@@ -39,6 +40,14 @@ define(function(require, exports, module) {
return null; return null;
}; };
this.setStatus('readonly'); this.setStatus('readonly');
/* Added by zhangbobell 2015.9.12
* 为了能够在只读的状态下去掉外层 receiver 和 hotbox
* 需要触发一个 readonly 事件
* */
this._fire(new MinderEvent("readonly"));
me._interactChange(); me._interactChange();
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment