Skip to content

Commit

Permalink
fix: create_element should return a selection even if an error happens
Browse files Browse the repository at this point in the history
fixes #200
  • Loading branch information
kantord committed Jun 18, 2018
1 parent 514301f commit dc5d4c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/base/bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ const create_element = (init_func, instance_args, selection) => {
? init_func(instance_args, selection) : selection.append('span')
} catch(error) {
selection.call(show_error_message(`${error} [bind]`))
return selection
}
}

Expand Down

0 comments on commit dc5d4c7

Please sign in to comment.