MCPcopy
hub / github.com/helloxz/onenav / zindex

Function zindex

static/jQuery-contextMenu/jquery.contextMenu.js:259–271  ·  view source on GitHub ↗
($t)

Source from the content-addressed store, hash-verified

257 },
258 // determine zIndex
259 zindex = function ($t) {
260 var zin = 0,
261 $tt = $t;
262
263 while (true) {
264 zin = Math.max(zin, parseInt($tt.css('z-index'), 10) || 0);
265 $tt = $tt.parent();
266 if (!$tt || !$tt.length || 'html body'.indexOf($tt.prop('nodeName').toLowerCase()) > -1) {
267 break;
268 }
269 }
270 return zin;
271 },
272 // event handlers
273 handle = {
274 // abort anything

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected