Skip to content

Commit

Permalink
fix(api): explicite url setting should have priority over data url
Browse files Browse the repository at this point in the history
A given url as api setting should always have higher priority than a previously existing data value of the same element
  • Loading branch information
lubber-de authored Dec 15, 2022
1 parent fc431e8 commit 1084e98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/definitions/behaviors/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -852,8 +852,8 @@
return settings.on;
},
templatedURL: function (action) {
action = action || $module.data(metadata.action) || settings.action || false;
url = $module.data(metadata.url) || settings.url || false;
action = action || settings.action || $module.data(metadata.action) || false;
url = settings.url || $module.data(metadata.url) || false;
if (url) {
module.debug('Using specified url', url);

Expand Down

0 comments on commit 1084e98

Please sign in to comment.