Adding type values to node extensions
These will be useful later
This commit is contained in:
1 parent
1ffcd785f8
commit
b9dd80a142
3 files changed
+5
No files matched your search
@@ -2,4 +2,5 @@ import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
type: 'match',
|
||||
});
|
||||
@@ -2,6 +2,8 @@ import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
type: 'regexp',
|
||||
|
||||
render(container) {
|
||||
this.container = container;
|
||||
this.contents = _.map(this.matches(), match => {
|
||||
|
||||
@@ -2,6 +2,8 @@ import _ from 'lodash';
|
||||
import Base from './base.js';
|
||||
|
||||
export default _.extend({}, Base, {
|
||||
type: 'root',
|
||||
|
||||
render(container) {
|
||||
this.contents = container.group();
|
||||
|
||||
|
||||
Reference in new issue
Block a user