cocos2d/cocos2d-html5 — pull request #492 by ricardoquesada (2012-08-10 04:28:59+00:00)
Title: Improves blending function

blending function is compatible with WebGL / OpenGL.

Instead of calling:
sprite.setBlendFunc( new cc.BlendFunc( cc.GL_ONE, cc.GL_ZERO) );

You just call:
sprite.setBlendFunc( gl.ONE, gl.ZERO );