Skip to content

Commit

Permalink
#2 Replace .trigger with triggerHandler
Browse files Browse the repository at this point in the history
  • Loading branch information
JavaTMP committed Nov 4, 2018
1 parent 700161a commit 7a72f45
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 148 deletions.
4 changes: 2 additions & 2 deletions dist/bootstrap-actionable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions js/bootstrap-actionable.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
var $that = this;
$($that.outputElement).html(response).promise().done(function () {
setTimeout(function () {
$($that.outputElement).trigger($that.containerReadyEventName);
$($that.outputElement).triggerHandler($that.containerReadyEventName);
}, 0);
});
},
Expand All @@ -109,7 +109,7 @@
var event = localOptions.linkEvent;
event.preventDefault();
var removeEvent = $.Event(localOptions.containerRemoveEventName, {_newTarget: $this});
$(localOptions.outputElement).trigger(removeEvent).promise().done(function () {
$(localOptions.outputElement).triggerHandler(removeEvent).promise().done(function () {
if (!removeEvent.isDefaultPrevented()) {
$(localOptions.outputElement).off(localOptions.containerReadyEventName).promise().done(function () {
$(localOptions.outputElement).off(localOptions.containerRemoveEventName).promise().done(function () {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-actionable",
"version": "1.0.9",
"version": "1.0.10",
"description": "Actionable plugin is a small Javascript code that help implement click actions for a and button tags by declarative way and provide functionalities to load AJAX content in Bootstrap Modal Wrapper instance.",
"keywords": [
"bootstrap",
Expand Down
Loading

0 comments on commit 7a72f45

Please sign in to comment.