Răsfoiți Sursa

refine TagContext

Yuki Takei 7 ani în urmă
părinte
comite
fef664d956

+ 1 - 1
packages/growi-commons/package.json

@@ -1,6 +1,6 @@
 {
   "name": "growi-commons",
-  "version": "4.0.0-beta2",
+  "version": "4.0.0-beta3",
   "description": "GROWI Commons Libraries",
   "keywords": [
     "growi"

+ 4 - 4
packages/growi-commons/src/plugin/model/tag-context.js

@@ -1,9 +1,9 @@
 class TagContext {
 
-  constructor() {
-    this.tagExpression = null;
-    this.method = null;
-    this.args = null;
+  constructor(initArgs) {
+    this.tagExpression = initArgs.tagExpression || null;
+    this.method = initArgs.method || null;
+    this.args = initArgs.args || null;
   }
 
 }