1
0
mirror of synced 2024-11-29 16:16:02 +03:00

Merge pull request #2866 from LeoUnglaub/master

Fixing issue #2864
This commit is contained in:
Kevin Brown 2014-12-16 12:56:27 -05:00
commit 874390d5ab

View File

@ -1943,7 +1943,7 @@ the specific language governing permissions and limitations under the Apache Lic
} else if (this.opts.width === "copy" || this.opts.width === "resolve") { } else if (this.opts.width === "copy" || this.opts.width === "resolve") {
// check if there is inline style on the element that contains width // check if there is inline style on the element that contains width
style = this.opts.element.attr('style'); style = this.opts.element.attr('style');
if (style !== undefined) { if (typeof(style) === "string") {
attrs = style.split(';'); attrs = style.split(';');
for (i = 0, l = attrs.length; i < l; i = i + 1) { for (i = 0, l = attrs.length; i < l; i = i + 1) {
attr = attrs[i].replace(/\s/g, ''); attr = attrs[i].replace(/\s/g, '');