satisfy lint task

This commit is contained in:
Andy Edinborough 2012-12-28 12:12:47 -06:00
parent 8fe61a43b0
commit 3171390f80
2 changed files with 4 additions and 4 deletions

View File

@ -274,9 +274,9 @@ _html2canvas.Parse = function (images, options) {
text_align = text_align.replace(["-webkit-auto"],["auto"]);
renderList = (!options.letterRendering && /^(left|right|justify|auto)$/.test(text_align) && noLetterSpacing(letter_spacing))
? textNode.nodeValue.split(/(\b| )/)
: textNode.nodeValue.split("");
renderList = (!options.letterRendering && /^(left|right|justify|auto)$/.test(text_align) && noLetterSpacing(letter_spacing)) ?
textNode.nodeValue.split(/(\b| )/) :
textNode.nodeValue.split("");
metrics = setTextVariables(ctx, el, text_decoration, color);
oldTextNode = textNode;

View File

@ -156,7 +156,7 @@ _html2canvas.Preload = function( options ) {
function parseBackgroundImage(value) {
var rxBackgroundImage = /([a-z\-]+)\((("[^"]+)|([^)]+))\)/i,
match, results = [], n = 0;
if(!value) return results;
if(!value) { return results; }
while(n++ < 100 && !!(match = value.match(rxBackgroundImage))) {
var def = match[2];
if(def.substr(0,1) === '"') {