c80_yax 0.1.0.21 → 0.1.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37eb797db8500530c0fd5a0644f572fd1de2b711
4
- data.tar.gz: 1332ff3cbba382552944f55c351ff3c020b613de
3
+ metadata.gz: a0695658ffca19bf340b75e7fbd1512599d08a0c
4
+ data.tar.gz: f991a7bb6f7c53125d7dd9b1ba6d68b9dd44253a
5
5
  SHA512:
6
- metadata.gz: 53dc2c10ae24ba09973c66ee990e7f403a6da0b049ee6bb34b680ed09ec29afe5b6a1897c95b7dcb0612a9ce59bb07477a9de4561d609d6ea39dcb5e97fe8d85
7
- data.tar.gz: '0063757595dfec78bfe6a533d4e779d2069d469846ba27108b64c2745bbc5df965fc606defd88fb3fa8477fd652368a70598dd0392b0d5fde6188731a7631be2'
6
+ metadata.gz: 6af24abd9829d3d98820f4f2cec30aa16f8d265802e2784a1b37c03538c81df793dabe02b63657f545f0d7a295696ae8276fcb2ea11673e658b3a5affbc53dbe
7
+ data.tar.gz: 3c14ec8803324d9d59a0619d398ee23a8d2031479ed0edbc3476fda1907f4a452e83bec057c9dcd89b3704e6f835ccfcbfd696f181cd7e126ceb052e600c40d7
@@ -81,6 +81,7 @@ var CookiesService = function() {
81
81
 
82
82
  this.cart_get = function() {
83
83
  var cart = _read_cookie('cart3');
84
+ if (cart === null) cart = [];
84
85
  return cart;
85
86
  }
86
87
 
@@ -95,6 +96,7 @@ var CookiesService = function() {
95
96
  this.cart_update_row = function(row_id, color, obj_with_new_values) {
96
97
  // console.log('<cart_update_row> row_id: ' + row_id + "; color: " + color);
97
98
  var cart = _read_cookie('cart3');
99
+ if (cart === null) return;
98
100
  for (var i = 0, row; i < cart.length; i++) {
99
101
  row = cart[i];
100
102
  if (row['id'] !== row_id) continue;
@@ -109,6 +111,7 @@ var CookiesService = function() {
109
111
 
110
112
  this.cart_remove_row = function(row_id, color) {
111
113
  var cart = _read_cookie('cart3');
114
+ if (cart === null) return;
112
115
  for (var i = 0, row; i < cart.length; i++) {
113
116
  row = cart[i];
114
117
  if (row['id'] !== row_id) continue;
@@ -1,3 +1,3 @@
1
1
  module C80Yax
2
- VERSION = '0.1.0.21'
2
+ VERSION = '0.1.0.22'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: c80_yax
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.21
4
+ version: 0.1.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - C80609A
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-07-25 00:00:00.000000000 Z
11
+ date: 2017-07-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler