Skip to content

Commit 573aa12

Browse files
committed
Issue ohmage#5 - Clean up a few unused variables so uglify stops complaining
1 parent b41a5d8 commit 573aa12

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ohmage.js

+3-4
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
//globals
3232
var callbacks = [];
33-
var login;
3433

3534
//container with optional set functions
3635
var oh = {}
@@ -113,7 +112,7 @@
113112
error(response.errors[0].text, response.errors[0].code, req)
114113
filter.reject(req, textStatus, errorThrown);
115114
} else {
116-
var msg = "JSON response did not contain result attribute."
115+
var errorThrown = "JSON response did not contain result attribute."
117116
error(errorThrown, -2, req)
118117
filter.reject(req, textStatus, errorThrown);
119118
}
@@ -494,7 +493,7 @@
494493
});
495494

496495
//or: keep alive only when active
497-
oh.keepactive = once(function(t){
496+
oh.keepactive = once(function(){
498497
$('html').click(function() {
499498
oh.ping();
500499
});
@@ -553,7 +552,7 @@
553552
// test run call
554553
oh.config.read().done(function(x){
555554
console.log("This is Ohmage/" + x.application_name + " " + x.application_version + " (" + x.application_build + ")")
556-
}).error(function(msg, code){
555+
}).error(function(msg){
557556
console.log("Ohmage seems offline: " + msg)
558557
});
559558

ohmage.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)