1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-10-01 16:30:46 +00:00

My old buddy JSHint

This commit is contained in:
Jeremy Ruston 2012-04-10 14:07:43 +01:00
parent b456c0a01c
commit 3743bcc562

View File

@ -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);
}
}