Merge pull request #847 from knoxHuang/master

fix CCProfiler error
This commit is contained in:
pandamicro
2016-06-29 14:32:34 +08:00
committed by GitHub
+1 -1
View File
@@ -167,7 +167,7 @@ cc.profiler = (function () {
hideStats: function () {
_showFPS = false;
if (_fps.parentElement === cc.container) {
if (_fps && _fps.parentElement === cc.container) {
cc.container.removeChild(_fps);
}
},