Sha256: 2bab3872be55f8088bb7f835a9cb53e493a705af9fc0dd5eb46be70846a3b444

Contents?: true

Size: 1.63 KB

Versions: 2

Compression:

Stored size: 1.63 KB

Contents

{I"
class:ETI"ProcessedAsset;FI"logical_path;TI".sprangular/controllers/checkout/review.js;FI"
pathname;TI"o/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/controllers/checkout/review.coffee;FI"content_type;TI"application/javascript;TI"
mtime;Tl+z%UI"length;TiI"digest;TI"%174b396e8c853bb590770c99f80aa477;FI"source;TI"(function() {
  Sprangular.controller('CheckoutReviewCtrl', function($scope, $location, Cart, Checkout) {
    $scope.order = Cart.current;
    $scope.$watch('order.state', function(state) {
      return $scope.active = state === 'confirm';
    });
    return $scope.placeOrder = function() {
      $scope.processing = true;
      if ($scope.order.isInvalid()) {
        $scope.processing = false;
        return;
      }
      return Checkout.complete().then(function(order) {
        if (order.errors && Object.keys(orders.errors).length > 0) {
          return $scope.processing = false;
        } else {
          return $location.path('/checkout/complete');
        }
      }, function() {
        return $scope.processing = false;
      });
    };
  });

}).call(this);
;TI"dependency_digest;TI"%6bf579654c279c2e463256c0658ef9db;FI"required_paths;T[I"o/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/controllers/checkout/review.coffee;FI"dependency_paths;T[{I"	path;TI"o/home/josh/Projects/Dynamo/sprangular/app/assets/javascripts/sprangular/controllers/checkout/review.coffee;FI"
mtime;TI"2015-04-08T14:57:34-04:00;TI"digest;TI"%d35cbf1c9a085385a394d25f88f14abb;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/83652e2af2b944f68f1e6ebde88e2547
sprangular-0.1.0 spec/dummy/tmp/cache/assets/development/sprockets/eaf1788e8ad09e0720283cb17500ed49