Skip to content

Commit b40c858

Browse files
fix: Correct bug when firing events
1 parent 85802c9 commit b40c858

File tree

6 files changed

+12
-4
lines changed

6 files changed

+12
-4
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ wire.db
55
*.pyc
66
build
77
dist
8-
.eggs
8+
.eggs
9+
debug.html
10+
debug.py

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## [1.0.4] - 2021-06-01
2+
### Fixed
3+
- Fixed a bug when firing events during a mutation
14
## [1.0.3] - 2021-03-09
25
### Added
36
- Added `loader_use_html`, `error_use_html` parameters to the `wire_frame` macro -

babel.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
// babel.config.js
22
module.exports = {
33
presets: [['@babel/preset-env', {targets: {node: 'current'}}]],
4+
plugins: [
5+
"@babel/plugin-proposal-class-properties"
6+
]
47
};

flask_wire/static/js/bundle.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ class WireManager {
290290
this.events[eventName].addListener(listener)
291291
}
292292

293-
fireEvents(events) {
293+
fireEvents = (events) => {
294294
for (let event of events) {
295295
if (event in this.events) {
296296
this.events[event].fire()

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import codecs
1313

14-
version = '1.0.3'
14+
version = '1.0.4'
1515

1616
setup(
1717
name='Flask-Wire',

0 commit comments

Comments
 (0)