1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-29 07:20:47 +00:00

Coding style cleanup

This commit is contained in:
Jermolene 2014-11-25 13:49:22 +00:00
parent 6f0d581d72
commit 996eecc79a

View File

@ -71,13 +71,11 @@ EditTextWidget.prototype.render = function(parent,nextSibling) {
} }
// Fix height // Fix height
this.fixHeight(); this.fixHeight();
// Focus field // Focus field
if(this.editFocus === "true") { if(this.editFocus === "true") {
domNode.focus(); domNode.focus();
domNode.select(); domNode.select();
} }
}; };
/* /*
@ -148,7 +146,6 @@ EditTextWidget.prototype.execute = function() {
this.editMinHeight = this.getAttribute("minHeight",DEFAULT_MIN_TEXT_AREA_HEIGHT); this.editMinHeight = this.getAttribute("minHeight",DEFAULT_MIN_TEXT_AREA_HEIGHT);
this.editFocusPopup = this.getAttribute("focusPopup"); this.editFocusPopup = this.getAttribute("focusPopup");
this.editFocus = this.getAttribute("focus"); this.editFocus = this.getAttribute("focus");
// Get the editor element tag and type // Get the editor element tag and type
var tag,type; var tag,type;
if(this.editField === "text") { if(this.editField === "text") {