Skip to content

Commit

Permalink
Merge pull request #2 from mihroot/patch-1
Browse files Browse the repository at this point in the history
Fix scopes
  • Loading branch information
blixt committed Jul 7, 2014
2 parents 83cc255 + ed7ad48 commit 721cf4e
Showing 1 changed file with 14 additions and 9 deletions.
23 changes: 14 additions & 9 deletions instagram.js
Expand Up @@ -42,11 +42,11 @@ Instagram.BASE_URL = 'https://api.instagram.com/v1';
* @enum
*/
Instagram.Scope = {
ALL: 7,
BASIC: 0,
LIKES: 1,
COMMENTS: 2,
RELATIONSHIPS: 4
ALL: 2047, /* 1,2,4 ... 1024*/
BASIC: 1,
LIKES: 2,
COMMENTS: 4,
RELATIONSHIPS: 8
};

/**
Expand All @@ -55,10 +55,10 @@ Instagram.Scope = {
* @private
*/
Instagram._translateScope = {
0: 'basic',
1: 'likes',
2: 'comments',
4: 'relationships'
1: 'basic',
2: 'likes',
4: 'comments',
8: 'relationships'
};

/**
Expand Down Expand Up @@ -427,3 +427,8 @@ InstagramImage.prototype.update = function (data) {

// TODO(blixt): This has not been implemented yet.
};
) {
InstagramImage.preloaded_[this.src] = true;
} else {
// TODO(blixt): Should report back to calling code when failing.
if (console) console.error(

0 comments on commit 721cf4e

Please sign in to comment.