Make the core into a plugin

This commit is contained in:
Jeremy Ruston
2013-03-28 17:07:30 +00:00
parent c411ee5106
commit cd36f594c5
10 changed files with 18 additions and 9 deletions
+1 -2
View File
@@ -90,8 +90,7 @@ exports.startup = function() {
$tw.crypto.setPassword(null);
});
// Apply stylesheets
var styleTiddlers = $tw.wiki.getTiddlersWithTag("$:/core/styles");
$tw.utils.each(styleTiddlers,function(title) {
$tw.utils.each($tw.modules.types.stylesheet,function(moduleInfo,title) {
// Stylesheets don't refresh, yet
var parser = $tw.wiki.parseTiddler(title),
renderTree = new $tw.WikiRenderTree(parser,{wiki: $tw.wiki});
+1 -1
View File
@@ -375,7 +375,7 @@ application/x-tiddler-dictionary: the tiddler is parsed as sequence of name:valu
Other types currently just return null.
*/
exports.getTiddlerData = function(title,defaultData) {
var tiddler = this.tiddlers[title],
var tiddler = this.getTiddler(title),
data;
if(tiddler && tiddler.fields.text) {
switch(tiddler.fields.type) {