Skip to content

Commit

Permalink
Merge pull request #30 from lyt9304/fix-data-api
Browse files Browse the repository at this point in the history
fix data(action) to attr(data-action)
  • Loading branch information
cssmagic committed Mar 18, 2016
2 parents 5d80ba9 + 53fb06e commit 9417655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/action.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ var action = (function () {

// util
function _getActionName($elem) {
var result = $elem.data('action') || ''
var result = $elem.attr('data-action') || ''
if (!result) {
var href = $.trim($elem.attr('href'))
if (href && href.indexOf('#') === 0) result = href
Expand Down

0 comments on commit 9417655

Please sign in to comment.