Skip to content

Commit

Permalink
Fix wysihtml5.dom.copyAttributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Blum committed May 1, 2012
1 parent c87d4f0 commit 0fe58a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dom/copy_attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ wysihtml5.dom.copyAttributes = function(attributesToCopy) {
length = attributesToCopy.length;
for (; i<length; i++) {
attribute = attributesToCopy[i];
if (elementToCopyFrom[attribute]) {
if (typeof(elementToCopyFrom[attribute]) !== "undefined" && elementToCopyFrom[attribute] !== "") {
elementToCopyTo[attribute] = elementToCopyFrom[attribute];
}
}
Expand Down

0 comments on commit 0fe58a7

Please sign in to comment.