Skip to content

Commit

Permalink
Instructions: how to use w/ Browserify or similar
Browse files Browse the repository at this point in the history
  • Loading branch information
Max Pittsley committed Oct 18, 2014
1 parent 82ea273 commit c677b07
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ jQuery('.mydiv')

<p>To see an example of what could be done with it, <a href="http://stephband.info/jquery.event.move/">stephband.info/jquery.event.move/</a></p>

<h2>CommonJS</h2>

<p>If you're using Browserify, or any other CommonJS-compatible module system, you can require this script by passing it your jQuery reference. For example,<p>

<pre><code class="js">
require('./path/to/jquery.event.move.js')(jQuery);
</code></pre>

<h2>Tweet me</h2>

<p>If you use move events on something interesting, tweet me <a href="http://twitter.com/stephband">@stephband</a>!</p>
<p>If you use move events on something interesting, tweet me <a href="http://twitter.com/stephband">@stephband</a>!</p>

0 comments on commit c677b07

Please sign in to comment.