Skip to content

Commit 7a72f45

Browse files
committed
#2 Replace .trigger with triggerHandler
1 parent 700161a commit 7a72f45

File tree

5 files changed

+148
-148
lines changed

5 files changed

+148
-148
lines changed

dist/bootstrap-actionable.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/bootstrap-actionable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
var $that = this;
9595
$($that.outputElement).html(response).promise().done(function () {
9696
setTimeout(function () {
97-
$($that.outputElement).trigger($that.containerReadyEventName);
97+
$($that.outputElement).triggerHandler($that.containerReadyEventName);
9898
}, 0);
9999
});
100100
},
@@ -109,7 +109,7 @@
109109
var event = localOptions.linkEvent;
110110
event.preventDefault();
111111
var removeEvent = $.Event(localOptions.containerRemoveEventName, {_newTarget: $this});
112-
$(localOptions.outputElement).trigger(removeEvent).promise().done(function () {
112+
$(localOptions.outputElement).triggerHandler(removeEvent).promise().done(function () {
113113
if (!removeEvent.isDefaultPrevented()) {
114114
$(localOptions.outputElement).off(localOptions.containerReadyEventName).promise().done(function () {
115115
$(localOptions.outputElement).off(localOptions.containerRemoveEventName).promise().done(function () {

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bootstrap-actionable",
3-
"version": "1.0.9",
3+
"version": "1.0.10",
44
"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.",
55
"keywords": [
66
"bootstrap",

0 commit comments

Comments
 (0)