Skip to content

Commit

Permalink
Data AJAX: Using .getAttribute instead of .data to retrieve data valu…
Browse files Browse the repository at this point in the history
…e to avoid caching by jQuery.

Fixes #6072
  • Loading branch information
Paul Jackson authored and LaurentGoderre committed Sep 22, 2014
1 parent d8a2c0e commit 5e41d83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/data-ajax/data-ajax.js
Expand Up @@ -39,9 +39,9 @@ var componentName = "wb-data-ajax",

$document.trigger({
type: "ajax-fetch.wb",
element: $( elm ),
element: $elm,
fetch: {
url: $elm.data( "ajax-" + ajaxType )
url: elm.getAttribute( "data-ajax-" + ajaxType )
}
});
}
Expand Down

0 comments on commit 5e41d83

Please sign in to comment.