projects
/
gpl
/
argeo-suite.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Introduce tight integration with JavaScript classes
[gpl/argeo-suite.git]
/
js
/
src
/
geo
/
MapPart.js
diff --git
a/js/src/geo/MapPart.js
b/js/src/geo/MapPart.js
index 5711233a629767c5647405cbcf40e11b32a2c750..d2f712c629fc7711368146300c84c1ff1f89a812 100644
(file)
--- a/
js/src/geo/MapPart.js
+++ b/
js/src/geo/MapPart.js
@@
-69,4
+69,9
@@
export default class MapPart {
getMapDivCssClass() {
throw new Error("Abstract method");
}
+
+ newObject(js) {
+ const func = new Function(js);
+ return (func());
+ }
}