chore(core): Removed info event type
This commit is contained in:
parent
75f0e97c05
commit
01ab30656d
1 changed files with 0 additions and 5 deletions
|
@ -13,16 +13,12 @@ import { version } from '../package.json'
|
||||||
export default function Pattern(config = { options: {} }) {
|
export default function Pattern(config = { options: {} }) {
|
||||||
// Events store and raise methods
|
// Events store and raise methods
|
||||||
this.events = {
|
this.events = {
|
||||||
info: [],
|
|
||||||
warning: [],
|
warning: [],
|
||||||
error: [],
|
error: [],
|
||||||
debug: []
|
debug: []
|
||||||
}
|
}
|
||||||
const events = this.events
|
const events = this.events
|
||||||
this.raise = {
|
this.raise = {
|
||||||
event: function (data) {
|
|
||||||
events.info.push(data)
|
|
||||||
},
|
|
||||||
warning: function (data) {
|
warning: function (data) {
|
||||||
events.warning.push(data)
|
events.warning.push(data)
|
||||||
},
|
},
|
||||||
|
@ -637,7 +633,6 @@ Pattern.prototype.getRenderProps = function () {
|
||||||
props.settings = this.settings
|
props.settings = this.settings
|
||||||
props.events = {
|
props.events = {
|
||||||
debug: this.events.debug,
|
debug: this.events.debug,
|
||||||
info: this.events.info,
|
|
||||||
warning: this.events.warning,
|
warning: this.events.warning,
|
||||||
error: this.events.error
|
error: this.events.error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue