Skip to content

Commit

Permalink
jslint!
Browse files Browse the repository at this point in the history
  • Loading branch information
mvrilo committed Mar 13, 2011
1 parent f64e5aa commit 720320b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/tumblrrr.js
Expand Up @@ -161,7 +161,7 @@ var Tumblr = function(user, email, pwd) {
};

// if not specified what to 'read' return read_methods.posts() or read_methods.dashboard() if email and password are set
if (typeof optMain === 'function' || typeof optMain === 'object' && typeof opt === 'function') {
if (typeof optMain === 'function' || (typeof optMain === 'object' && typeof opt === 'function')) {
if (!email || !pwd ) {
read_methods.posts.apply(this, arguments);
}
Expand Down Expand Up @@ -403,7 +403,8 @@ var Tumblr = function(user, email, pwd) {
}
}
else {
for (var i in opt) {
var i;
for (i in opt) {
if (i === 'id') {
thequery['post-id'] = opt[i];
}
Expand All @@ -426,7 +427,8 @@ var Tumblr = function(user, email, pwd) {
};

// expose main methods
for (var i in this.main) {
var i;
for (i in this.main) {
if (this.main[i]) {
this[i] = this.main[i];
}
Expand Down

0 comments on commit 720320b

Please sign in to comment.