Changeset 689

Show
Ignore:
Timestamp:
09/07/06 13:32:14 (2 years ago)
Author:
JeremyRuston
Message:

Added story.refreshAllTiddlers()

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Branches/2.1/core/js/Story.js

    r587 r689  
    192192                } 
    193193        return theTiddler; 
     194} 
     195 
     196// Refresh all tiddlers in the Story 
     197Story.prototype.refreshAllTiddlers = function()  
     198{ 
     199        var place = document.getElementById(this.container); 
     200        var e = place.firstChild;  
     201        this.refreshTiddler(e.getAttribute("tiddler"),e.getAttribute("template"),true); 
     202        while((e = e.nextSibling) != null)  
     203                this.refreshTiddler(e.getAttribute("tiddler"),e.getAttribute("template"),true); 
    194204} 
    195205