Ignore transforms if non found

This commit is contained in:
MoyuScript 2013-08-06 18:20:20 +03:00
parent 1fa45c64e1
commit 965104be57

View File

@ -955,12 +955,14 @@ _html2canvas.Parse = function (images, options) {
var TRANSFORM_REGEXP = /(matrix)\((.+)\)/;
if (transform && transform !== "none") {
var match = transform.match(TRANSFORM_REGEXP);
if (match) {
switch(match[1]) {
case "matrix":
matrix = match[2].split(",").map(Util.trimText).map(Util.asFloat);
break;
}
}
}
return {
origin: transformOrigin,