From 208ef66be4ade1cc0f270ddb7c0d737775104017 Mon Sep 17 00:00:00 2001 From: justins83 Date: Wed, 13 Dec 2017 14:45:37 -0500 Subject: [PATCH] Update WMEPIE.js Removing debugger lines --- WMEPIE.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/WMEPIE.js b/WMEPIE.js index 77d49ea..4bc3561 100644 --- a/WMEPIE.js +++ b/WMEPIE.js @@ -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* @@ -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"; @@ -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 @@ -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(); @@ -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)