diff --git a/core/modules/macros/transclude.js b/core/modules/macros/transclude.js index 4635ca5e9..d0e95b4d6 100644 --- a/core/modules/macros/transclude.js +++ b/core/modules/macros/transclude.js @@ -14,6 +14,7 @@ Transclude macro exports.info = { name: "transclude", + dependentAll: true, // Tiddlers containing <> macro are dependent on every tiddler params: { filter: {byPos: 0, type: "filter"}, title: {byPos: 1, type: "tiddler"}, @@ -24,6 +25,7 @@ exports.info = { }; exports.executeMacro = function() { +console.log("Executing transclude macro",this.params.filter,this.tiddlerTitle); var titles,templateTiddler,templateText,t,title,templateParseTree, nodes,node,c, parents = this.parents.slice(0); diff --git a/core/modules/utils/dom/browser.js b/core/modules/utils/dom/browser.js index e1e78b50c..52f8c5482 100644 --- a/core/modules/utils/dom/browser.js +++ b/core/modules/utils/dom/browser.js @@ -28,6 +28,13 @@ exports.getBrowserInfo = function(info) { "Moz": "transitionend", "webkit": "webkitTransitionEnd" }[info.prefix]; + info.animationEnd = { + "": "animationEnd", + "O": "oAnimationEnd", + "MS": "msAnimationEnd", + "Moz": "animationend", + "webkit": "webkitAnimationEnd" + }[info.prefix]; info.requestFullScreen = document.body.webkitRequestFullScreen !== undefined ? "webkitRequestFullScreen" : document.body.mozRequestFullScreen !== undefined ? "mozRequestFullScreen" : document.body.requestFullScreen !== undefined ? "requestFullScreen" : ""; diff --git a/core/modules/utils/dom/dom.js b/core/modules/utils/dom/dom.js index 602906468..2392832be 100644 --- a/core/modules/utils/dom/dom.js +++ b/core/modules/utils/dom/dom.js @@ -112,4 +112,19 @@ exports.forceLayout = function(element) { var dummy = element.offsetWidth; }; +/* +Pulse an element for debugging purposes +*/ +exports.pulseElement = function(element) { + // Event handler to remove the class at the end + element.addEventListener($tw.browser.animationEnd,function handler(event) { + element.removeEventListener($tw.browser.animationEnd,handler,false); + $tw.utils.removeClass(element,"pulse"); + },false); + // Apply the pulse class + $tw.utils.removeClass(element,"pulse"); + element.offsetWidth; + $tw.utils.addClass(element,"pulse"); +}; + })(); diff --git a/core/styles/tiddlywiki.files b/core/styles/tiddlywiki.files index 68ba67d5b..f4584e036 100644 --- a/core/styles/tiddlywiki.files +++ b/core/styles/tiddlywiki.files @@ -12,6 +12,12 @@ "title": "$:/core/lib/bootstrap-responsive.css", "type": "text/css" } + }, { + "file": "pulse.css", + "fields": { + "title": "$:/core/lib/pulse.css", + "type": "text/css" + } } ] } \ No newline at end of file