Upgrade to Grunt 0.4.0 complete. Safari on OSX bug fix.

This commit is contained in:
Dan Farrelly
2013-03-22 14:57:38 -04:00
parent 2d95a761b0
commit 8623e4014b
2 changed files with 46 additions and 20 deletions

View File

@ -775,7 +775,12 @@ _html2canvas.Parse = function (images, options) {
elps.className = pseudoHide + "-before " + pseudoHide + "-after";
Object.keys(elStyle).filter(indexedProperty).forEach(function(prop) {
elps.style[prop] = elStyle[prop];
// Prevent assigning of read only CSS Rules, ex. length, parentRule
try {
elps.style[prop] = elStyle[prop];
} catch (e) {
h2clog(['Tried to assign readonly property ', prop, 'Error:', e]);
}
});
if(isImage) {