Skip to content

Commit 2d00a32

Browse files
committed
Merge pull request cocos2d#2778 from dingpinglv/Iss2698_namespace
Removed the unused function from cc.Sprite.
2 parents 8cf0255 + eb14077 commit 2d00a32

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

cocos2d/clipping-nodes/CCClippingNodeCanvasRenderCmd.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
if(!stencil)
105105
return;
106106
var node = this._node;
107-
if(stencil._renderCmd && stencil._renderCmd._blendFuncStr)
107+
if(stencil._renderCmd && stencil._renderCmd._blendFuncStr) //it is a hack way.
108108
stencil._renderCmd._blendFuncStr = (node.inverted ? "destination-out" : "destination-in");
109109

110110
if(!stencil._children)

cocos2d/core/sprites/CCSpriteCanvasRenderCmd.js

-5
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@
4646

4747
proto._init = function () {};
4848

49-
proto._setBlendFuncStr = function(compositeOperation){
50-
//a hack function for clippingNode
51-
this._blendFuncStr = compositeOperation;
52-
};
53-
5449
proto.setDirtyRecursively = function (value) {};
5550

5651
proto._resetForBatchNode = function () {};

0 commit comments

Comments
 (0)