remove the error throwing in storage engine constructor

This commit is contained in:
Eddie Lau 3dd13
2016-01-22 13:54:25 +08:00
parent f5f4169db0
commit 893009a603
2 changed files with 1 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ import {StorageEngine} from './storage';
* @see {@link /docs/v2/platform/storage/ Storage Platform Docs}
*/
export class LocalStorage extends StorageEngine {
constructor() {
constructor(options={}) {
super();
}

View File

@@ -56,7 +56,6 @@ export interface IStorageEngine {
*/
export class StorageEngine {
constructor(options={}) {
throw Error("constructor(options={}) not implemented for this storage engine");
}
get(key, value) {
throw Error("get() not implemented for this storage engine");