Permalink
Browse files

fixed some cookie chaos

  • Loading branch information...
chetanankola committed Aug 20, 2012
1 parent e892d8b commit 70f2bd88c71d3d910165695fe535028aa5e51c5a
Showing with 2 additions and 2 deletions.
  1. +2 −2 mojits/instagram/controller.server.js
@@ -33,7 +33,7 @@ YUI.add('instagram', function(Y, NAME) {
ac.assets.addCss('./index.css');
- if(!ac.params.getFromRoute('defer')){
+ if(!ac.params.getFromRoute('defer') && ac.cookie.get('access_token')){
var loaderImg1 = 'http://a.l.yimg.com/a/i/us/sch/mob/spinner-white-small.gif';
var loaderImg2 = 'http://a.l.yimg.com/a/i/us/sch/mob/spinner-1.0.0.gif';
return ac.done();
@@ -125,4 +125,4 @@ YUI.add('instagram', function(Y, NAME) {
};
-}, '0.0.1', {requires: ['mojito', 'instagramModelFoo']});
+}, '0.0.1', {requires: ['mojito', 'cookie','instagramModelFoo']});

0 comments on commit 70f2bd8

Please sign in to comment.