bug fixes

This commit is contained in:
Niklas von Hertzen 2012-03-02 21:53:20 +02:00
parent ec881018b3
commit 0b065ad5d8
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;

View File

@ -225,6 +225,7 @@ _html2canvas.Parse = function ( images, options ) {
text,
metrics,
renderList,
listLen,
bold = getCSS(el, "fontWeight"),
font_style = getCSS(el, "fontStyle"),
font_variant = getCSS(el, "fontVariant"),
@ -298,7 +299,7 @@ _html2canvas.Parse = function ( images, options ) {
oldTextNode = textNode;
for (c=0; c < renderList.length; c+=1) {
for ( c=0, listLen = renderList.length; c < listLen; c+=1 ) {
textValue = null;