1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-28 02:50:27 +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() { TextEditor.prototype.renderInDom = function() {
this.fixHeight(); this.fixHeight();
} };
TextEditor.prototype.isRefreshable = function() { TextEditor.prototype.isRefreshable = function() {
// Don't refresh the editor if it contains the caret or selection // Don't refresh the editor if it contains the caret or selection
@ -285,6 +285,7 @@ exports.macro = {
} }
}, },
refreshInDom: function(changes) { refreshInDom: function(changes) {
var t;
// Only refresh if a dependency is triggered // Only refresh if a dependency is triggered
if(this.dependencies.hasChanged(changes,this.tiddlerTitle)) { if(this.dependencies.hasChanged(changes,this.tiddlerTitle)) {
// Only refresh if the editor lets us // Only refresh if the editor lets us
@ -300,7 +301,7 @@ exports.macro = {
// Execute the new content // Execute the new content
this.execute(this.parents,this.tiddlerTitle); this.execute(this.parents,this.tiddlerTitle);
// Render to the DOM // 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); this.content[t].renderInDom(this.domNode);
} }
} }