浏览代码

refine TagContext

Yuki Takei 7 年之前
父节点
当前提交
fef664d956
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 1 1
      packages/growi-commons/package.json
  2. 4 4
      packages/growi-commons/src/plugin/model/tag-context.js

+ 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;
   }
 
 }