mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
satisfy lint task
This commit is contained in:
parent
8fe61a43b0
commit
3171390f80
@ -274,9 +274,9 @@ _html2canvas.Parse = function (images, options) {
|
|||||||
|
|
||||||
text_align = text_align.replace(["-webkit-auto"],["auto"]);
|
text_align = text_align.replace(["-webkit-auto"],["auto"]);
|
||||||
|
|
||||||
renderList = (!options.letterRendering && /^(left|right|justify|auto)$/.test(text_align) && noLetterSpacing(letter_spacing))
|
renderList = (!options.letterRendering && /^(left|right|justify|auto)$/.test(text_align) && noLetterSpacing(letter_spacing)) ?
|
||||||
? textNode.nodeValue.split(/(\b| )/)
|
textNode.nodeValue.split(/(\b| )/) :
|
||||||
: textNode.nodeValue.split("");
|
textNode.nodeValue.split("");
|
||||||
|
|
||||||
metrics = setTextVariables(ctx, el, text_decoration, color);
|
metrics = setTextVariables(ctx, el, text_decoration, color);
|
||||||
oldTextNode = textNode;
|
oldTextNode = textNode;
|
||||||
|
@ -156,7 +156,7 @@ _html2canvas.Preload = function( options ) {
|
|||||||
function parseBackgroundImage(value) {
|
function parseBackgroundImage(value) {
|
||||||
var rxBackgroundImage = /([a-z\-]+)\((("[^"]+)|([^)]+))\)/i,
|
var rxBackgroundImage = /([a-z\-]+)\((("[^"]+)|([^)]+))\)/i,
|
||||||
match, results = [], n = 0;
|
match, results = [], n = 0;
|
||||||
if(!value) return results;
|
if(!value) { return results; }
|
||||||
while(n++ < 100 && !!(match = value.match(rxBackgroundImage))) {
|
while(n++ < 100 && !!(match = value.match(rxBackgroundImage))) {
|
||||||
var def = match[2];
|
var def = match[2];
|
||||||
if(def.substr(0,1) === '"') {
|
if(def.substr(0,1) === '"') {
|
||||||
|
Loading…
Reference in New Issue
Block a user