external modules for core

This commit is contained in:
Kushan Joshi
2016-06-18 02:08:14 +05:30
parent 74028b8f16
commit 12df331d51
10 changed files with 1691 additions and 39 deletions
+5 -3
View File
@@ -1,3 +1,5 @@
import { getPrototypeOf } from '../util/index';
export function Graph(other, mutable) {
if (!(this instanceof Graph)) return new Graph(other, mutable);
@@ -97,9 +99,9 @@ Graph.prototype = {
base: function() {
return {
'entities': iD.util.getPrototypeOf(this.entities),
'parentWays': iD.util.getPrototypeOf(this._parentWays),
'parentRels': iD.util.getPrototypeOf(this._parentRels)
'entities': getPrototypeOf(this.entities),
'parentWays': getPrototypeOf(this._parentWays),
'parentRels': getPrototypeOf(this._parentRels)
};
},