bug fixes

This commit is contained in:
MoyuScript
2012-03-02 21:53:20 +02:00
parent a406c791f1
commit e410dc1179
2 changed files with 4 additions and 3 deletions

View File

@@ -58,9 +58,9 @@ _html2canvas.Generate.Gradient = function(src, bounds) {
getColors( tmp[1].substr( position.length + 2 ) );
position = position.split(' ');
for (p = 0; p < position.length; p+=1) {
for ( p = 0, len = position.length; p < len; p+=1 ) {
switch(position[p]) {
switch( position[ p ] ) {
case 'top':
p3 = bounds.height;
break;