mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-10-02 17:00:45 +00:00
94d1c20846
And renamed the wiki rule base class
31 lines
503 B
JavaScript
31 lines
503 B
JavaScript
/*\
|
|
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;
|
|
|
|
})();
|