jquery.bouncer
Version:
Defers event handler until a duration has lapsed or a given event has occurred.
26 lines (25 loc) • 931 B
HTML
<html>
<head>
<meta charset="utf-8">
<title>Bouncer Test Suite</title>
<script src="../node_modules/jquery/dist/jquery.js"></script>
<!-- Load local QUnit. -->
<link rel="stylesheet" href="../node_modules/qunitjs/qunit/qunit.css" media="screen">
<script src="../node_modules/qunitjs/qunit/qunit.js"></script>
<!-- Load local lib and tests. -->
<script src="../src/jquery.bouncer.js"></script>
<script src="jquery.bouncer_test.js"></script>
<!-- Removing access to jQuery and $. But it'll still be available as _$, if
you REALLY want to mess around with jQuery in the console. REMEMBER WE
ARE TESTING A PLUGIN HERE, THIS HELPS ENSURE BEST PRACTICES. REALLY. -->
<script>window._$ = jQuery.noConflict(true);</script>
</head>
<body>
<div id="qunit"></div>
<div id="qunit-fixture">
<a id="foo" href="#foo">foo</a>
<a id="bar" href="#bar">bar</a>
</div>
</body>
</html>