@@ 1423-1438 (lines=16) @@ | ||
1420 | * @param: zoneId - id of a contextual zone |
|
1421 | * @type: public |
|
1422 | */ |
|
1423 | dhtmlXMenuObject.prototype.removeContextZone = function(zoneId) { |
|
1424 | if (!this.isContextZone(zoneId)) return false; |
|
1425 | if (zoneId == document.body) zoneId = "document.body."+this.idPrefix; |
|
1426 | var zone = this.contextZones[zoneId]; |
|
1427 | if (_isOpera) { |
|
1428 | zone.removeEventListener("mouseup", this.operaContext, false); |
|
1429 | } else { |
|
1430 | zone.oncontextmenu = (zone._oldContextMenuHandler!=null?zone._oldContextMenuHandler:null); |
|
1431 | zone._oldContextMenuHandler = null; |
|
1432 | } |
|
1433 | try { |
|
1434 | this.contextZones[zoneId] = null; |
|
1435 | delete this.contextZones[zoneId]; |
|
1436 | } catch(e){} |
|
1437 | return true; |
|
1438 | } |
|
1439 | /** |
|
1440 | * @desc: returns true if an object is used as a contextual zone for the menu |
|
1441 | * @param: zoneId - id of the object to check |
@@ 1391-1406 (lines=16) @@ | ||
1388 | * @param: zoneId - id of a contextual zone |
|
1389 | * @type: public |
|
1390 | */ |
|
1391 | dhtmlXMenuObject.prototype.removeContextZone = function(zoneId) { |
|
1392 | if (!this.isContextZone(zoneId)) return false; |
|
1393 | if (zoneId == document.body) zoneId = "document.body."+this.idPrefix; |
|
1394 | var zone = this.contextZones[zoneId]; |
|
1395 | if (_isOpera) { |
|
1396 | zone.removeEventListener("mouseup", this.operaContext, false); |
|
1397 | } else { |
|
1398 | zone.oncontextmenu = (zone._oldContextMenuHandler!=null?zone._oldContextMenuHandler:null); |
|
1399 | zone._oldContextMenuHandler = null; |
|
1400 | } |
|
1401 | try { |
|
1402 | this.contextZones[zoneId] = null; |
|
1403 | delete this.contextZones[zoneId]; |
|
1404 | } catch(e){} |
|
1405 | return true; |
|
1406 | } |
|
1407 | /** |
|
1408 | * @desc: returns true if an object is used as a contextual zone for the menu |
|
1409 | * @param: zoneId - id of the object to check |