Sha256: 50f8a3a54d50c85b13103bf3479ff7c6bf0becf0ac841e12c528018d321b9a6d
Contents?: true
Size: 570 Bytes
Versions: 35
Compression:
Stored size: 570 Bytes
Contents
"use strict"; function RemoveButton() { var _map = null; var _this = this; _this.el = null; _this.onClick = function (e) { if (_this.el.hasClass('disabled')) return; e.preventDefault(); //console.log("<RemoveButton.onClick> Переходим в режим удаления полигона."); _map.setMode('removing'); }; _this.init = function (button_css_selector, link_to_map) { _map = link_to_map; _this.el = $(button_css_selector); _this.el.on('click', _this.onClick); }; }
Version data entries
35 entries across 35 versions & 1 rubygems