mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
bug fixes
This commit is contained in:
parent
ec881018b3
commit
0b065ad5d8
@ -58,7 +58,7 @@ _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 ] ) {
|
||||
case 'top':
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user