MCPcopy
hub / github.com/methodofaction/Method-Draw / toolButtonClick

Function toolButtonClick

src/js/method-draw.js:314–325  ·  view source on GitHub ↗
(button, noHiding)

Source from the content-addressed store, hash-verified

312 });
313
314 var toolButtonClick = function(button, noHiding) {
315 if ($(button).hasClass('disabled')) return false;
316 if($(button).parent().hasClass('tools_flyout')) return true;
317 var fadeFlyouts = fadeFlyouts || 'normal';
318 if(!noHiding) {
319 $('.tools_flyout').fadeOut(fadeFlyouts);
320 }
321 $('#styleoverrides').text('');
322 $('.tool_button.current').removeClass('current');
323 $(button).addClass('current');
324 return true;
325 };
326
327 (function() {
328 var last_x = null, last_y = null, w_area = workarea[0],

Callers 10

clickSelectFunction · 0.85
clickFHPathFunction · 0.85
clickLineFunction · 0.85
clickRectFunction · 0.85
clickEllipseFunction · 0.85
clickZoomFunction · 0.85
clickTextFunction · 0.85
clickPathFunction · 0.85
clickEyedropperFunction · 0.85
clickShapelibFunction · 0.85

Calls 1

$Function · 0.85

Tested by

no test coverage detected