Skip to content

Commit

Permalink
needUpdate -> willUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
le-jeu committed Feb 17, 2021
1 parent 65f9cd7 commit fc07904
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core/code/map_data_render.js
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ window.Render.prototype.createPortalEntity = function(ent, details) {
// yes. now check to see if the entity data we have is newer than that in place
var p = window.portals[guid];

if (!p.needUpdate(data)) {
if (!p.willUpdate(data)) {
// this data doesn't bring new detail - abort processing
return p;
}
Expand Down
2 changes: 1 addition & 1 deletion core/code/portal_marker.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ L.PortalMarker = L.CircleMarker.extend({
this.on('dblclick', handler_portal_dblclick);
this.on('contextmenu', handler_portal_contextmenu);
},
needUpdate: function (details) {
willUpdate: function (details) {
// portal location edit
if (this._details.latE6 !== details.latE6 || this._details.lngE6 !== details.lngE6)
return true;
Expand Down

0 comments on commit fc07904

Please sign in to comment.