equal
deleted
inserted
replaced
2 |
2 |
3 template "widget[@type='JsonTable']", mode="widget_class" |
3 template "widget[@type='JsonTable']", mode="widget_class" |
4 || |
4 || |
5 class JsonTableWidget extends Widget{ |
5 class JsonTableWidget extends Widget{ |
6 // arbitrary defaults to avoid missing entries in query |
6 // arbitrary defaults to avoid missing entries in query |
7 cache = [0,100,50]; |
7 cache = [0,0,0]; |
8 init_common() { |
8 init_common() { |
9 this.spread_json_data_bound = this.spread_json_data.bind(this); |
9 this.spread_json_data_bound = this.spread_json_data.bind(this); |
10 this.handle_http_response_bound = this.handle_http_response.bind(this); |
10 this.handle_http_response_bound = this.handle_http_response.bind(this); |
11 this.fetch_error_bound = this.fetch_error.bind(this); |
11 this.fetch_error_bound = this.fetch_error.bind(this); |
12 this.promised = false; |
12 this.promised = false; |