function rename

This commit is contained in:
Huabing.Xu
2016-06-28 14:06:55 +08:00
parent cbae75e5fd
commit b81e14d2e7
7 changed files with 9 additions and 9 deletions
@@ -165,7 +165,7 @@ proto._cangodhelpme = function (godhelpme) {
proto.visit = function(parentCmd){
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible)
return;
@@ -81,7 +81,7 @@ proto.transform = function(parentCmd, recursive){
proto.visit = function(parentCmd){
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible)
return;
@@ -334,7 +334,7 @@ _ccsg.Node.RenderCmd.prototype = {
}
return this._transform;
},
_propagateFlags: function(parentCmd) {
_propagateFlagsDown: function(parentCmd) {
//return;
var flags = _ccsg.Node._dirtyFlags, locFlag = this._dirtyFlag;
var parentNode = parentCmd ? parentCmd._node : null;
@@ -454,7 +454,7 @@ proto.transform = function (parentCmd, recursive) {
proto.visit = function (parentCmd) {
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible)
return;
@@ -45,7 +45,7 @@ proto._updateColor = function(){};
proto.visit = function (parentCmd) {
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible)
return;
@@ -143,7 +143,7 @@
var node = this._node, children = node._children;
var len = children.length;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible || len === 0)
return;
@@ -295,7 +295,7 @@
}
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible)
return;
@@ -60,7 +60,7 @@ proto.rendering = function () {
proto.visit = function(parentCmd){
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
// quick return if not visible
if (!node._visible)
return;
+1 -1
View File
@@ -125,7 +125,7 @@ proto.getTexture = function(){
proto.visit = function(parentCmd){
var node = this._node;
this._propagateFlags(parentCmd);
this._propagateFlagsDown(parentCmd);
//TODO: it will implement dynamic compute child cutting automation.
var i, len, locChildren = node._children;
// quick return if not visible