1.1.0 • Published 8 years ago

obj-timeout v1.1.0

Weekly downloads
2
License
Apache-2
Repository
github
Last release
8 years ago

obj-timeout

Object wrapper for setTimeout function

Why

It can be very useful if you're writing web applications using React.js.

let objTimeout = require('obj-timeout');

let App = React.createClass({
	waiter: null,
	componentDidMount: function() {
		this.waiter = new objTimeout(() => {
			console.log('waited')
		}, 2000);
	},
	componentWillUnmount: function() {
		this.waiter.destroy()
	},
	...
});
1.1.0

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago