Skip to content

Commit

Permalink
Remove dead code and use nodeName instead of tagName property in tool…
Browse files Browse the repository at this point in the history
…bar code
  • Loading branch information
tiff committed Dec 28, 2012
1 parent 1272b84 commit 832c179
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/commands/fontSize.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
* Instead we set a css class
*/
(function(wysihtml5) {
var undef,
REG_EXP = /wysiwyg-font-size-[0-9a-z\-]+/g;
var REG_EXP = /wysiwyg-font-size-[0-9a-z\-]+/g;

wysihtml5.commands.fontSize = {
exec: function(composer, command, size) {
Expand All @@ -14,10 +13,6 @@

state: function(composer, command, size) {
return wysihtml5.commands.formatInline.state(composer, command, "span", "wysiwyg-font-size-" + size, REG_EXP);
},

value: function() {
return undef;
}
};
})(wysihtml5);
2 changes: 1 addition & 1 deletion src/toolbar/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
for (; i<length; i++) {
// 'javascript:;' and unselectable=on Needed for IE, but done in all browsers to make sure that all get the same css applied
// (you know, a:link { ... } doesn't match anchors with missing href attribute)
if (links[i].tagName === "A") {
if (links[i].nodeName === "A") {
dom.setAttributes({
href: "javascript:;",
unselectable: "on"
Expand Down

0 comments on commit 832c179

Please sign in to comment.