Sha256: 285456778ee1d912eec267906b4c5d11091e3fa921d6c8ba63571fe0be0cb3ce

Contents?: true

Size: 1.74 KB

Versions: 2

Compression:

Stored size: 1.74 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI"#sprangular/controllers/cart.js;FI"
pathname;TI"d/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/controllers/cart.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+"UI"length;TiªI"digest;TI"%9578321e074fffa24fd5609c8e0c596d;FI"source;TI"ª(function() {
  Sprangular.controller("CartCtrl", function($scope, Cart, Account, Status, Angularytics, Env) {
    $scope.user = Account.user;
    $scope.cart = Cart.current;
    $scope.status = Status;
    $scope.currencySymbol = Env.currency.symbol;
    $scope.removeAdjustment = function(adjustment) {
      Angularytics.trackEvent("Cart", "Coupon removed", adjustment.promoCode());
      return Cart.removeAdjustment(adjustment);
    };
    $scope.removeItem = function(item) {
      Angularytics.trackEvent("Cart", "Item removed", item.variant.product.name);
      return Cart.removeItem(item);
    };
    $scope.isEmpty = function() {
      return Cart.current.isEmpty();
    };
    $scope.empty = function() {
      Cart.empty();
      Angularytics.trackEvent("Cart", "Emptied");
      return $scope.$emit('cart.empty', Cart);
    };
    return $scope.reload = function() {
      return Cart.reload();
    };
  });

}).call(this);
;TI"dependency_digest;TI"%90e5a3d1edc326b3c919928b9311f0e8;FI"required_paths;T[I"d/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/controllers/cart.coffee;FI"dependency_paths;T[{I"	path;TI"d/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/controllers/cart.coffee;FI"
mtime;TI"2015-03-25T16:05:54-04:00;TI"digest;TI"%0ceb80b49e5e8c57a5097d1ae785bc74;FI"
_version;TI"%64e62ddc273c2f5847f30d698ca14b67;F

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
sprangular-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/dd3226bc50b382668f18d8f26f58ced3
sprangular-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/fadf2737702ca3e6a29eb310e0aae39a