Skip to content

Commit c18b3f3

Browse files
committed
adding export of internal functions and event handlers - Issue #101
1 parent 3999af7 commit c18b3f3

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ $.contextMenu is published under the [MIT license](http://www.opensource.org/lic
110110
* fixing key "watch" might translate to Object.prototype.watch in callbacks map - ([Issue 93](https://github.com/medialize/jQuery-contextMenu/issues/93))
111111
* fixing menu and submenu width calculation - ([Issue 18](https://github.com/medialize/jQuery-contextMenu/issues/18))
112112
* fixing unused variables - ([Issue 100](https://github.com/medialize/jQuery-contextMenu/issues/100))
113+
* adding export of internal functions and event handlers - ([Issue 101](https://github.com/medialize/jQuery-contextMenu/issues/101))
114+
113115

114116
### 1.5.25 ###
115117

src/jquery.contextMenu.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1639,5 +1639,8 @@ $.contextMenu.fromMenu = function(element) {
16391639
// make defaults accessible
16401640
$.contextMenu.defaults = defaults;
16411641
$.contextMenu.types = types;
1642-
window.menus = menus;
1642+
// export internal functions - undocumented, for hacking only!
1643+
$.contextMenu.handle = handle;
1644+
$.contextMenu.op = op;
1645+
16431646
})(jQuery);

0 commit comments

Comments
 (0)