caboose-store 0.0.29 → 0.0.30

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MTExODk3Njk5MjRkYWYxYWRmODgxZWM3OTUyNDM0OWY5NGI1YzI0Zg==
4
+ MjRhMmJkYjY1MGIzOTE5ODFiYjMzZTA1YTUxYzVmMTEwNzAxM2YyOQ==
5
5
  data.tar.gz: !binary |-
6
- MDhkMTUzN2QyZDk4MzQwOWVkYWIxZTk5NTU1MmZhN2M3NmVhYzY2MQ==
6
+ OGE2ZTVjZTg2OTJkMjQzNTU1ZTg2YWJiZmRhYjQ5MmI4NDg3MjUxMA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NWMzYzM3NzRlNDYxYjM5YzQ3YTg5YTgxMmQzZTM5NzdkNDU4NjFlYTMwMjlh
10
- NzE2NDIzYzBiZDY0N2I1MGMxOTc4YTc1OTU3ZmI5OWZiZmQ4ZjdkOWEyODli
11
- NmQwNTY0MzgyMTgyOTRjZTE4NzI3YTY2ZTI0NmRlYmRhMWZmZjg=
9
+ OGE0ZTBmYTg3MzBmMzhkOGEwMjZiM2Q1YzhjZDBmNDIxOGU3NzE4OGE2Y2Q5
10
+ NDZmYTE1MzUyODQ1MGQ0OTQxYWFhOTIyYjYyN2UwODhiMzNhYWYxZGM2Mzc4
11
+ OTJhOTI5ZTRhOThiMjI5NjdkOTYzOTcwZDI4MmQ1ZThiYWVjNTc=
12
12
  data.tar.gz: !binary |-
13
- N2EyZTM3N2E4ODEyYzNlMTdhOWJkNDllN2I3YzdmZmJiYTA1Y2VlOTVjMjc0
14
- ZGUwMjBjNmRmNTk4ZTlkY2U2NzU3MzQ4NDU4YjVhZTVhZDczMDFkN2M2ZGMy
15
- ODA4OGQzYWVkMmJhNGQyMTU1NGIxNmM3MjIxNDQzYTljZmE5ZmM=
13
+ MTYyNjEzMjMwNGQ1OTM5ZGUzMzU1MjUzNDMwYzkyOTQ1YWQxNThiZTQxOWFl
14
+ Mzg2NDc3M2ViZGFhM2E3OWU2NDc3NGQ3MTRhZDAyZjVjOGZlM2QxNzZmMDMy
15
+ YzAwN2FlNmQ3Y2Q2YzE4ZGVlMjQzZWFiNzhjMGI0YTRiMjBkMTk=
@@ -276,10 +276,12 @@ Caboose.Store.Modules.Product = (function() {
276
276
  // Image Methods
277
277
  //
278
278
 
279
- self.setImageFromVariant = function(variant) {
280
- var $figure = self.$images.children('figure');
279
+ self.setImageFromVariant = function(variant) {
280
+ if (!variant || !variant.images || variant.images.length == 0 || !variant.images[0])
281
+ return;
281
282
 
282
- if (variant.images && variant.images.length > 0) {
283
+ var $figure = self.$images.children('figure');
284
+ if (variant.images && variant.images.length > 0 && variant.images[0]) {
283
285
  $figure.css('background-image', 'url(' + variant.images[0].urls.large + ')');
284
286
  } else if ($figure.css('background-image').toLowerCase() == 'none') {
285
287
  $figure.css('background-image', 'url(' + _.first(self.product.images).urls.large + ')');
@@ -1,3 +1,3 @@
1
1
  module CabooseStore
2
- VERSION = '0.0.29'
2
+ VERSION = '0.0.30'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.29
4
+ version: 0.0.30
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-27 00:00:00.000000000 Z
11
+ date: 2014-08-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: caboose-cms