Commit af985776 authored by 张博's avatar 张博

fixed bug: 用户初始化后触发 paperrender 事件

parent 50447482
/*!
* ====================================================
* kityminder - v1.4.1 - 2015-08-05
* kityminder - v1.4.1 - 2015-09-02
* https://github.com/fex-team/kityminder-core
* GitHub: https://github.com/fex-team/kityminder-core.git
* Copyright (c) 2015 Baidu FEX; Licensed MIT
......@@ -1798,7 +1798,7 @@ _p[18] = {
initHook.call(this, this._options);
}
}
this.fire("ready");
this.fire("finishInitHook");
}
});
Minder.version = "1.4.1";
......@@ -7010,7 +7010,7 @@ _p[59] = {
this.execCommand("camera", this.getRoot(), 800);
}
},
paperrender: function() {
"paperrender finishInitHook": function() {
this.execCommand("camera", null, 0);
this._lastClientSize = {
width: this.getRenderTarget().clientWidth,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -26,7 +26,7 @@ define(function(require, exports, module) {
}
}
this.fire('ready');
this.fire('finishInitHook');
}
});
......
......@@ -311,7 +311,7 @@ define(function(require, exports, module) {
this.execCommand('camera', this.getRoot(), 800);
}
},
'paperrender': function() {
'paperrender finishInitHook': function() {
this.execCommand('camera', null, 0);
this._lastClientSize = {
width: this.getRenderTarget().clientWidth,
......
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