mirror of
https://github.com/apankrat/nullboard.git
synced 2025-08-05 20:57:43 +02:00
get rid of 'class fields'
This commit is contained in:
@@ -1238,7 +1238,13 @@
|
|||||||
|
|
||||||
class Storage
|
class Storage
|
||||||
{
|
{
|
||||||
type = '?';
|
constructor()
|
||||||
|
{
|
||||||
|
this.type = '?';
|
||||||
|
|
||||||
|
this.conf = null;
|
||||||
|
this.boardIndex = new Map();
|
||||||
|
}
|
||||||
|
|
||||||
open()
|
open()
|
||||||
{
|
{
|
||||||
@@ -1438,9 +1444,6 @@
|
|||||||
* private
|
* private
|
||||||
*/
|
*/
|
||||||
|
|
||||||
conf = null;
|
|
||||||
boardIndex = new Map();
|
|
||||||
|
|
||||||
getItem(name) { throw 'implement-me'; }
|
getItem(name) { throw 'implement-me'; }
|
||||||
setItem(name) { throw 'implement-me'; }
|
setItem(name) { throw 'implement-me'; }
|
||||||
delItem(name) { throw 'implement-me'; }
|
delItem(name) { throw 'implement-me'; }
|
||||||
@@ -1471,7 +1474,11 @@
|
|||||||
|
|
||||||
class Storage_Local extends Storage
|
class Storage_Local extends Storage
|
||||||
{
|
{
|
||||||
type = 'LocalStorage';
|
constructor()
|
||||||
|
{
|
||||||
|
super();
|
||||||
|
this.type = 'LocalStorage';
|
||||||
|
}
|
||||||
|
|
||||||
getItem(name)
|
getItem(name)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user