minimal yet very useful synchronization primitive on top of jQuery Deferreds
MIT License
A minimal yet very useful synchronization primitive on top of jQuery Deferreds that is available as a jQuery plugin client-side and a npm package for node server-side.
Latest version of Fence is version 0.4.0
See our Introduction to Fence.
npm install fence
fence
as a dependency in package.json
Fence itself depends on JQDeferred an automated port of jQuery Deferreds to node.
Once Fence is installed, require
it in your code:
var Fence = require( "fence" );
Download the minified or full-text version of the plugin and drop it into your project.
Then:
<script src="path/to/js/fence.0.4.0.js"></script>
yepnope( "path/to/js/fence.0.4.0.js" );
After that, Fence is available as jQuery.Fence
, that simple.
To build Fence yourself, you need node.
git clone git://github.com/jaubourg/fence.git
cd fence
git checkout 0.4.0
npm install
node .
Node package is now located in dist/node
, jQuery plugin in dist/jquery
.