Skip to content
Browse files

Remove some duplication

The default value for the text put into the editor was specified in
two separate places. Remove this duplication
  • Loading branch information...
1 parent 388a802 commit 18e42dfe116fe1502419861c38a6e8d9359b3ee7 @rhburrows committed Jun 29, 2011
Showing with 1 addition and 2 deletions.
  1. +0 −1 src/editor.js
  2. +1 −1 test/editorTest.js
View
1 src/editor.js
@@ -6,7 +6,6 @@
this.presize = 0;
this.postsize = 0;
- initialText = initialText || "";
this.insertString(initialText);
movePoint(this, -initialText.length);
}
View
2 test/editorTest.js
@@ -1,6 +1,6 @@
module("editor", {
setup: function() {
- editor = new $.fn.s2e.config.Editor();
+ editor = new $.fn.s2e.config.Editor("");
}
});

0 comments on commit 18e42df

Please sign in to comment.
Something went wrong with that request. Please try again.