Skip to content

Commit

Permalink
Do not use namespaces in data attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
vodkabears committed Jun 8, 2015
1 parent 1b01d25 commit 6a628ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/remodal.js
Original file line number Diff line number Diff line change
Expand Up @@ -504,14 +504,14 @@
$body.append(remodal.$wrapper);

// Add the event listener for the close button
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + NAMESPACE + '-action="close"]', function(e) {
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="close"]', function(e) {
e.preventDefault();

remodal.close();
});

// Add the event listener for the cancel button
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + NAMESPACE + '-action="cancel"]', function(e) {
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="cancel"]', function(e) {
e.preventDefault();

remodal.$modal.trigger(STATE_CHANGE_REASONS.CANCELLATION);
Expand All @@ -522,7 +522,7 @@
});

// Add the event listener for the confirm button
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + NAMESPACE + '-action="confirm"]', function(e) {
remodal.$wrapper.on('click.' + NAMESPACE, '[data-' + PLUGIN_NAME + '-action="confirm"]', function(e) {
e.preventDefault();

remodal.$modal.trigger(STATE_CHANGE_REASONS.CONFIRMATION);
Expand Down

0 comments on commit 6a628ce

Please sign in to comment.