An open API service indexing awesome lists of open source software.

https://github.com/fredwu/jqstub

A simple stub library for jQuery / Zepto objects.
https://github.com/fredwu/jqstub

Last synced: about 1 month ago
JSON representation

A simple stub library for jQuery / Zepto objects.

Awesome Lists containing this project

README

          

# JQStub [![endorse](http://api.coderwall.com/fredwu/endorsecount.png)](http://coderwall.com/fredwu)

### A simple stub library for jQuery / Zepto objects.

## NPM

If you use [npm](https://npmjs.org/), you can grab the source code by:

```
npm install jqstub
```

## Usage

```javascript
$(document).stub('height', 1337);
$(document).stub('height', function() { return 42; } );
$(document).unstub('height');
$(document).unstubAll();
```

## License

Copyright (c) 2012 [Fred Wu](http://fredwu.me/)

Licensed under the [MIT license](http://fredwu.mit-license.org/).

[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/fredwu/jqstub/trend.png)](https://bitdeli.com/free "Bitdeli Badge")