mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-27 10:30:28 +00:00
My old buddy JSHint
This commit is contained in:
parent
b456c0a01c
commit
3743bcc562
@ -244,7 +244,7 @@ TextEditor.prototype.fixHeight = function() {
|
||||
|
||||
TextEditor.prototype.renderInDom = function() {
|
||||
this.fixHeight();
|
||||
}
|
||||
};
|
||||
|
||||
TextEditor.prototype.isRefreshable = function() {
|
||||
// Don't refresh the editor if it contains the caret or selection
|
||||
@ -285,6 +285,7 @@ exports.macro = {
|
||||
}
|
||||
},
|
||||
refreshInDom: function(changes) {
|
||||
var t;
|
||||
// Only refresh if a dependency is triggered
|
||||
if(this.dependencies.hasChanged(changes,this.tiddlerTitle)) {
|
||||
// Only refresh if the editor lets us
|
||||
@ -300,7 +301,7 @@ exports.macro = {
|
||||
// Execute the new content
|
||||
this.execute(this.parents,this.tiddlerTitle);
|
||||
// Render to the DOM
|
||||
for(var t=0; t<this.content.length; t++) {
|
||||
for(t=0; t<this.content.length; t++) {
|
||||
this.content[t].renderInDom(this.domNode);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user