Created
February 3, 2015 14:04
-
-
Save coryhouse/7334587ca39f67dc34d4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//user.js | |
define([], function () { | |
var cart = require('cart'); //using this style to work around circular reference | |
var numItemsInCart = cart.items.length; | |
//logic to initialize user's cart icon continues here... | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment