Skip to content

Commit

Permalink
fix: Correct bug when firing events
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbukachi committed Jun 1, 2021
1 parent 85802c9 commit b40c858
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,6 @@ wire.db
*.pyc
build
dist
.eggs
.eggs
debug.html
debug.py
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## [1.0.4] - 2021-06-01
### Fixed
- Fixed a bug when firing events during a mutation
## [1.0.3] - 2021-03-09
### Added
- Added `loader_use_html`, `error_use_html` parameters to the `wire_frame` macro -
Expand Down
3 changes: 3 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// babel.config.js
module.exports = {
presets: [['@babel/preset-env', {targets: {node: 'current'}}]],
plugins: [
"@babel/plugin-proposal-class-properties"
]
};
2 changes: 1 addition & 1 deletion flask_wire/static/js/bundle.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ class WireManager {
this.events[eventName].addListener(listener)
}

fireEvents(events) {
fireEvents = (events) => {
for (let event of events) {
if (event in this.events) {
this.events[event].fire()
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

import codecs

version = '1.0.3'
version = '1.0.4'

setup(
name='Flask-Wire',
Expand Down

0 comments on commit b40c858

Please sign in to comment.