-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbbi.events.js
55 lines (33 loc) · 1.21 KB
/
bbi.events.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
/*! BBI Events (c) Blackbaud, Inc. */
(function(_win, bbi) {
"use strict";
var alias = "events";
bbi.on("init", function() {
bbi.extension({
alias: alias,
defaults: {},
directive: function(ext, bbi, $) {
var settings = ext.settings();
var _j;
var $win;
var usingNoConflict = false;
var methods = {
trigger: function(key, args) {
if (usingNoConflict) {
_j("namespace")(_win.document).trigger(key, [bbi, $]).unbind(key);
}
_j("window")(_win.document).trigger(key, [bbi, $]).unbind(key);
}
};
var __constructor = (function () {
_j = bbi("jQuery").getInstance(0).jQuery;
usingNoConflict = (_j("namespace").fn.jquery !== _j("window").fn.jquery);
}());
return {
trigger: methods.trigger
};
}
});
var instance = bbi.instantiate(alias);
});
}.call({}, window, bbiGetInstance()));