mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
Merge pull request #1952 from jareguo/temp
should not create component if conflict with canvas
This commit is contained in:
@@ -93,6 +93,9 @@ var SGComponent = cc.Class({
|
||||
else {
|
||||
cc.errorID(3628, name);
|
||||
}
|
||||
if (CC_EDITOR) {
|
||||
this.destroy();
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user