$tw.boot.remainingStartupModules = []; // Array of startup modules
$tw.modules.forEachModuleOfType("startup",function(title,module) {
if(module.startup) {
$tw.boot.remainingStartupModules.push(module);
}
});
function isPIN(element) {
return element.name = "$:/get-pinboard-bookmarks/create-pinboard-tiddlers.js";
}
task = $tw.boot.remainingStartupModules.find(isPIN);
task.startup();
if (!$tw.node) return;exports.startup = function() {
// $tw.hooks.addHook("reset-pinboard-tiddlers",function() { // runPinboardPlugin(); // return; // });
$tw.hooks.addHook("th-saving-tiddler",function(tiddler) { runPinboardPlugin(); return tiddler; });
runPinboardPlugin();} this.wiki.addEventListener("change",function(changes) {
if($tw.utils.hop(changes,"updatebookmarks")) {
runmyupdatebookmarks()
}
});
exports.platforms = ["node"];
exports.startup = function() {
$tw.wiki.addEventListener("change",function(changes) {
if($tw.utils.hop(changes,"updatebookmarks")) {
runPinboardPlugin();
}
});
runPinboardPlugin();} $tw.wiki.addEventListener("change",function(changes) { console.log('there was a change pinboard'); if($tw.utils.hop(changes,"updatebookmarks")) { runPinboardPlugin(); } }); this.wiki.addEventListener("change",function(changes) { console.log('there was a change pluginswitcher'); if($tw.utils.hop(changes,self.controllerTitle)) { self.switchPlugins(); } });/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
exports.name = "test";
exports.platforms = ["node"];
exports.after = ["commands"];
exports.synchronous = false;
exports.startup = function(callback) {
$tw.wiki.addEventListener("change",function(changes) {
if($tw.utils.hop(changes,"updatebookmarks")) {
var tiddlertxt = $tw.wiki.getTiddler("updatebookmarks").fields.text
console.log('**there was a change to updatebookmarks= '+tiddlertxt+' **');
}
});
};
<$button set="updatebookmarks" setTo=<<now "hh:0mm:0sspm">> >
Press me!
</$button>--
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/a016abcc-2fcd-4542-bbab-a0eb9e9ab339%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.