Creating Base module and extracting placeholder rendering

This commit is contained in:
Jeff Avallone
2014-11-30 14:10:27 -05:00
parent 4decff56e7
commit 30d88810d0
3 changed files with 50 additions and 29 deletions
+5 -2
View File
@@ -1,4 +1,7 @@
export default {
import _ from 'lodash';
import Base from './base.js';
export default _.extend({}, Base, {
matches() {
if (this.elements[1].regexp) {
return [this.match].concat(this.elements[1].regexp.matches());
@@ -6,4 +9,4 @@ export default {
return [this.match];
}
}
};
});