1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-09-07 04:56:53 +00:00
TiddlyWiki5/core/modules/widgetbase.js

31 lines
503 B
JavaScript
Raw Normal View History

/*\
title: $:/core/modules/widgetbase.js
type: application/javascript
module-type: global
Base class for widgets
\*/
(function(){
/*jslint node: true, browser: true */
/*global $tw: false */
"use strict";
/*
This constructor is always overridden with a blank constructor, and so shouldn't be used
*/
var WidgetBase = function() {
};
/*
To be overridden by individual widgets
*/
WidgetBase.prototype.init = function(renderer) {
this.renderer = renderer;
};
exports.WidgetBase = WidgetBase;
})();