Sha256: 9d3cfd9212d685d6d7df656d68d44dbdaeeeb167df38905c0d9d238d9a267175
Contents?: true
Size: 568 Bytes
Versions: 16
Compression:
Stored size: 568 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
16 entries across 16 versions & 2 rubygems