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.
- Host: GitHub
- URL: https://github.com/fredwu/jqstub
- Owner: fredwu
- Created: 2013-01-18T00:28:07.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-11-07T22:47:17.000Z (over 12 years ago)
- Last Synced: 2025-11-13T02:03:45.594Z (9 months ago)
- Language: JavaScript
- Size: 2.16 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# JQStub [](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/).
[](https://bitdeli.com/free "Bitdeli Badge")