Skip to content

Commit

Permalink
Update WMEPIE.js
Browse files Browse the repository at this point in the history
Removing debugger lines
  • Loading branch information
justins83 authored Dec 13, 2017
1 parent eb7c747 commit 208ef66
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions WMEPIE.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name WME Place Interface Enhancements
// @namespace https://greasyfork.org/users/30701-justins83-waze
// @version 2017.12.06.01
// @version 2017.12.13.01
// @description Enhancements to various Place interfaces
// @include https://www.waze.com/editor*
// @include https://www.waze.com/*/editor*
Expand All @@ -19,7 +19,7 @@ var UpdateObject, MultiAction;
(function() {
'use strict';

var curr_ver = "2017.12.06.01";
var curr_ver = "2017.12.13.01";
var settings = {};
var placeMenuSelector = "#edit-buttons > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";//"#edit-buttons > div > div.toolbar-button.waze-icon-place.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
//"#edit-buttons > div > div.toolbar-submenu.toolbar-group.toolbar-group-venues.ItemInactive > menu";
Expand Down Expand Up @@ -734,7 +734,6 @@ var UpdateObject, MultiAction;
filter: new OL.Filter.Comparison({
type: '==',
evaluate: function(venue) {
debugger;
if($("#_rbHidePlaces").prop("checked"))
return (new RegExp($('#piePlaceFilter').val(), "ig").exec(venue.model.attributes.name));
else
Expand Down Expand Up @@ -875,7 +874,6 @@ var UpdateObject, MultiAction;

function findNearestSegment(navPoint) {
'use strict';
debugger;
var closestSegment = {};
if(navPoint.element)
navPoint = W.geometryEditing.activeEditor._navigationPointMarker.lonlat.toPoint();
Expand Down Expand Up @@ -916,14 +914,12 @@ var UpdateObject, MultiAction;
let entryExitPoint = selectedItem.model.geometry.clone();
if(selectedItem.model.getNavigationPoints().length > 0)
entryExitPoint = selectedItem.model.attributes.entryExitPoints[0]._point;
debugger;
findNearestSegment(entryExitPoint);
};
//ClosestSegmentNavPoint.events.register('drag', W.geometryEditing.activeEditor, findNearestSegment);
let entryExitPoint = selectedItem.model.geometry.clone();
if(selectedItem.model.getNavigationPoints().length > 0)
entryExitPoint = selectedItem.model.attributes.entryExitPoints[0]._point;
debugger;
findNearestSegment(entryExitPoint);
} else {
if(selectedItem.model.getNavigationPoints().length === 0)
Expand Down

0 comments on commit 208ef66

Please sign in to comment.