chore(): update to latest stencil

This commit is contained in:
Manu Mtz.-Almeida
2018-04-26 20:35:04 +02:00
parent 8b1452c5c1
commit 4965dcc49e
3 changed files with 2 additions and 12 deletions

View File

@ -25,7 +25,7 @@
"ionicons": "4.0.0-19"
},
"devDependencies": {
"@stencil/core": "0.7.27-0",
"@stencil/core": "0.7.27-3",
"@stencil/dev-server": "latest",
"@stencil/sass": "0.0.3",
"@stencil/utils": "latest",

View File

@ -1,11 +1,10 @@
import { entries } from '../utils/helpers';
export class Config {
private m: Map<string, any>;
constructor(configObj: {[key: string]: any}) {
this.m = new Map<string, any>(entries(configObj));
this.m = new Map<string, any>(Object.entries(configObj));
}

View File

@ -41,15 +41,6 @@ export function pointerCoord(ev: any): {x: number, y: number} {
}
export type Side = 'start' | 'end';
export function entries<T>(obj: {[s: string]: T}): [string, T][] {
const ownProps = Object.keys( obj );
let i = ownProps.length;
const resArray = new Array(i);
while (i--)
resArray[i] = [ownProps[i], obj[ownProps[i]]];
return resArray;
}
/**
* @hidden
* Given a side, return if it should be on the right