We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8144cae commit c070ce6Copy full SHA for c070ce6
.DS_Store
6 KB
js/app.js
@@ -21,23 +21,23 @@ var drib = {
21
$.ajax({
22
url: url,
23
dataType: 'jsonp',
24
- timeout: 2000,
25
- success: function(data) {
+ timeout: 1000,
+ success: function(data) {
26
console.log('did the thing');
27
- cb(data);
+ cb(data);
28
},
29
error: function(x, t, m) {
30
if(t==="timeout") {
31
console.log('timeout error');
32
- popularShots.buildShots(data.shots);
+ drib.getPopular();
33
} else {
34
console.log('else timeout error');
35
36
}
37
38
- }
39
-
40
+ });
+ }
41
42
var popularShots = {
43
container:$('#picsList'),
0 commit comments