Commit 7c2cb5ae authored by 张博's avatar 张博

增加了 finishHook 事件判断 renderTarget 是否存在

parent af985776
...@@ -7011,6 +7011,9 @@ _p[59] = { ...@@ -7011,6 +7011,9 @@ _p[59] = {
} }
}, },
"paperrender finishInitHook": function() { "paperrender finishInitHook": function() {
if (!this.getRenderTarget()) {
return;
}
this.execCommand("camera", null, 0); this.execCommand("camera", null, 0);
this._lastClientSize = { this._lastClientSize = {
width: this.getRenderTarget().clientWidth, width: this.getRenderTarget().clientWidth,
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -312,6 +312,9 @@ define(function(require, exports, module) { ...@@ -312,6 +312,9 @@ define(function(require, exports, module) {
} }
}, },
'paperrender finishInitHook': function() { 'paperrender finishInitHook': function() {
if (!this.getRenderTarget()) {
return;
}
this.execCommand('camera', null, 0); this.execCommand('camera', null, 0);
this._lastClientSize = { this._lastClientSize = {
width: this.getRenderTarget().clientWidth, 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