NAME jQuery Extensions - RSpade framework extensions and overrides to jQuery SYNOPSIS // Standard click handler with automatic preventDefault $('.btn').click(function(e) { console.log('Button clicked'); }); // Escape hatch for native behavior (rare) $('.nav-link').click_allow_default(function(e) { analytics.track('click'); // Link navigation happens }); // Other jQuery helpers if ($('.element').exists()) { ... } if ($('.element').is_in_viewport()) { ... } $('.form').checkValidity(); DESCRIPTION RSpade extends jQuery with utility methods and overrides default behaviors to provide sensible defaults for modern web applications. The most significant change is the .click() override that automatically calls e.preventDefault() to prevent accidental page navigation and form submission. Unlike vanilla jQuery where developers must remember to call preventDefault in nearly every click handler, RSpade makes the correct behavior automatic. This eliminates a common source of bugs where forgotten preventDefault calls cause unwanted page reloads or navigation. Philosophy: - Prevent default is correct 95% of the time - Escape hatch available for the 5% case - Fail toward the safe behavior (no navigation) - Make the common case trivial CLICK OVERRIDE .click(handler) Attach click handler that automatically calls e.preventDefault() This prevents: - Link navigation () - Form submission (