Last active
August 29, 2015 14:14
-
-
Save coryhouse/f93feadd6a0de6808f7c to your computer and use it in GitHub Desktop.
User.js AMD Module
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(['cart'], function (cart) { | |
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