diff --git a/lib/part.ts b/lib/part.ts index 6bbf17e8f48..b71f9c5c01b 100644 --- a/lib/part.ts +++ b/lib/part.ts @@ -3,23 +3,10 @@ import { Path } from './path' import { Snippet } from './snippet' import { Attributes } from './attributes' -function PointProxy(id: string) { - this.id = id; - this.get = function(points: any, key: string, proxy: ProxyHandler>): Point { - return points.get(key); - }; - this.set = function(points: Map, key: string, point: Point, proxy: ProxyHandler>) { - point.attributes.add('data-key', key); - point.attributes.add('data-part', this.id); - points.set(key, point); - return true; - }; -}; - export class Part { id: string; render: boolean; - points: any; + points: { [index: string]: Point; } = {}; paths: { [index: string]: Path; } = {}; snippets: { [index: string]: Snippet; } = {}; attributes = new Attributes(); @@ -28,7 +15,6 @@ export class Part { constructor(id: string) { this.id = id; this.render = (id.substr(0,1) === '_') ? false : true; - this.points = new Proxy(new Map(), new PointProxy(id)); this.points.origin = new Point(0,0); return this;