Skip to content

Commit

Permalink
Update javascript.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Jan 1, 2025
1 parent 4764662 commit 81305ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpBlocklyJS/googlemap_20241226/javascript.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Blockly.JavaScript['googlemap_point_event_remove'] = function (block) {
var pointid = Blockly.JavaScript.valueToCode(block, 'pointid', Blockly.JavaScript.ORDER_ATOMIC)||"";
var event = block.getFieldValue('event');

var code = 'getMarker('+pointid+').removeListener("'+event+'");\n';
var code = 'google.maps.event.clearListeners(getMarker('+pointid+'), "'+event+'");\n';
return code;
};

Expand Down

0 comments on commit 81305ed

Please sign in to comment.