mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-01 23:03:55 -08:00
30 lines
503 B
JavaScript
30 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;
|
|
|
|
})();
|