We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d3f4674 + d88eeff commit 99c7025Copy full SHA for 99c7025
extensions/ccui/layouts/UILayoutCanvasRenderCmd.js
@@ -40,7 +40,9 @@
40
proto.constructor = ccui.Layout.CanvasRenderCmd;
41
42
cc.game.addEventListener(cc.game.EVENT_RENDERER_INITED, function () {
43
- ccui.Layout.CanvasRenderCmd.prototype.widgetVisit = ccui.Widget.CanvasRenderCmd.prototype.widgetVisit;
+ if (ccui.Widget.CanvasRenderCmd) {
44
+ ccui.Layout.CanvasRenderCmd.prototype.widgetVisit = ccui.Widget.CanvasRenderCmd.prototype.widgetVisit;
45
+ }
46
});
47
48
proto.visit = function(parentCmd){
0 commit comments