We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b1d1c97 commit e5d2169Copy full SHA for e5d2169
src/js/api.plugin.js
@@ -7,6 +7,17 @@ var api = api || {};
7
// Set
8
api.plugin = api.plugin || {};
9
10
+/*******************************************************************************
11
+API - Plugin - JQuery extensions
12
+*******************************************************************************/
13
+
14
+//Unbind all events prior to binding a new event using .on
15
+(function ($) {
16
+ $.fn.once = function () {
17
+ return this.off(arguments[0]).on(arguments[0], arguments[1]);
18
+ };
19
+})(jQuery);
20
21
/*******************************************************************************
22
API - Plugin - Return To Top
23
*******************************************************************************/
0 commit comments