make TestJavascript work on iOS

This commit is contained in:
minggo 2012-10-12 12:00:36 +08:00
parent 77f4469a1a
commit 572460e60a
3 changed files with 6 additions and 1255 deletions

View File

@ -52,7 +52,7 @@ cc._reuse_p1 = {x:0, y:0};
cc._reuse_p_index = 0; cc._reuse_p_index = 0;
cc._reuse_color3b = {r:255, g:255, b:255 }; cc._reuse_color3b = {r:255, g:255, b:255 };
cc._reuse_color4b = {r:255, g:255, b:255, a:255 }; cc._reuse_color4b = {r:255, g:255, b:255, a:255 };
cc._reuse_grid = cc.g(0,0); cc._reuse_grid = {x:0, y:0};
// //
// Color 3B // Color 3B
@ -126,6 +126,10 @@ cc._p = function( x, y )
// //
// Grid // Grid
// //
cc.g = function(x, y)
{
return {x:x, y:y};
};
cc._g = function( x, y ) cc._g = function( x, y )
{ {
cc._reuse_grid.x = x; cc._reuse_grid.x = x;

View File

@ -0,0 +1 @@
e92a199a2b2e5cd26e5d1e1c1b2846f4ba4f978f