Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function loadState() {
- this.loading = false,
- this.loadIntervalId = 0,
- this.setDisabled = function (){
- this.loading = false;
- if(this.loadIntervalId > 0)
- clearInterval(this.loadIntervalId);
- this.loadIntervalId = 0;
- },
- this.setLoading = function (){
- this.loading = true;
- }
- };
- var g_loadState = new loadState();
Advertisement
Add Comment
Please, Sign In to add comment