1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-07-13 23:42:50 +00:00
TiddlyWiki5/core/modules/macros/parent-ancestorcount-dom.js
2024-04-25 15:18:54 +02:00

27 lines
483 B
JavaScript

/*\
title: $:/core/modules/macros/parent-ancestorcount-dom.js
type: application/javascript
module-type: macro
Macro to return the parent widget this.ancestors variable
\*/
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
Information about this macro
*/
exports.name = "parent-ancestorcount-dom";
exports.params = [];
/*
Run the macro
*/
exports.run = function() {
return (this.parentWidget) ? this.parentWidget.getAncestorCountDom() + "" : "";
};