Skip to content

Commit f48abc5

Browse files
committed
Change function arguments.
1 parent 51db735 commit f48abc5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/jquery.contextMenu.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -899,8 +899,8 @@
899899
if (opt.zIndex) {
900900
var additionalZValue = opt.zIndex;
901901
// If opt.zIndex is a function, call the function to get the right zIndex.
902-
if (typeof opt.zIndex === "function") {
903-
additionalZValue = opt.zIndex.call(this);
902+
if (typeof opt.zIndex === 'function') {
903+
additionalZValue = opt.zIndex.call($trigger, opt);
904904
}
905905
css.zIndex = zindex($trigger) + additionalZValue;
906906
}

0 commit comments

Comments
 (0)