Skip to content

Commit

Permalink
Don't reuse method since the logging is confusing
Browse files Browse the repository at this point in the history
  • Loading branch information
jorgemanrubia committed Dec 20, 2024
1 parent 7fd2767 commit 5e69234
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/assets/javascripts/hotwire_spark.js
Original file line number Diff line number Diff line change
Expand Up @@ -3589,7 +3589,7 @@ var HotwireSpark = (function () {
return path.replace(/^.*\//, "").replace("_controller", "").replace(/\//g, "--").replace(/_/g, "-");
}
#registerController(name, module) {
this.#deregisterController(name);
this.application.unload(name);
this.application.register(name, module.default);
}
#deregisterController(name) {
Expand Down
2 changes: 1 addition & 1 deletion app/assets/javascripts/hotwire_spark.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion app/assets/javascripts/hotwire_spark.min.js.map

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export class StimulusReloader {
}

#registerController(name, module) {
this.#deregisterController(name)
this.application.unload(name)
this.application.register(name, module.default)
}

Expand Down

0 comments on commit 5e69234

Please sign in to comment.