Merge pull request #1952 from jareguo/temp

should not create component if conflict with canvas
This commit is contained in:
Jare Guo
2017-09-01 15:32:08 +08:00
committed by GitHub
+3
View File
@@ -93,6 +93,9 @@ var SGComponent = cc.Class({
else {
cc.errorID(3628, name);
}
if (CC_EDITOR) {
this.destroy();
}
}
}
});