Skip to content

Commit 1084e98

Browse files
authored
fix(api): explicite url setting should have priority over data url
A given url as api setting should always have higher priority than a previously existing data value of the same element
1 parent fc431e8 commit 1084e98

File tree

1 file changed

+2
-2
lines changed
  • src/definitions/behaviors

1 file changed

+2
-2
lines changed

src/definitions/behaviors/api.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,8 +852,8 @@
852852
return settings.on;
853853
},
854854
templatedURL: function (action) {
855-
action = action || $module.data(metadata.action) || settings.action || false;
856-
url = $module.data(metadata.url) || settings.url || false;
855+
action = action || settings.action || $module.data(metadata.action) || false;
856+
url = settings.url || $module.data(metadata.url) || false;
857857
if (url) {
858858
module.debug('Using specified url', url);
859859

0 commit comments

Comments
 (0)