pageflow-before-after 1.2.0 → 1.3.0

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
  SHA256:
3
- metadata.gz: 1e1eab8cb1cdabfac12b7170127f2b4522e2b444bc7262f634f650e324da1339
4
- data.tar.gz: fa8e76828a91cccda21ffc3d34c9a1390ad31202f4da3b2ed6809b7e3a024582
3
+ metadata.gz: 10de3897d8a84f582f5088c1897fa74d5eebeccebe1a0b7b63c829724b683440
4
+ data.tar.gz: a3a65817ab77868a384c465c8e47e69e8e04ecc640503b151e72dd1e74d9267b
5
5
  SHA512:
6
- metadata.gz: 3ce3949db87a3413a651b2da7b155f593dab4151b9ef0178dfc3fd87570b8de937e42d274653f7b0f0a91b59a6d14a408cdf0b27a4e3b09fc2eadca1762e00c2
7
- data.tar.gz: e2ec3960250087b8a3ed438cbd19ee3d8d389eb673c484493884a26ed427e21d5f54dcc3fbaed2e050921c2c02aa7ff7db95443847f04b7a22f3730c85346325
6
+ metadata.gz: b47c450ddff02ce88a6b70ee3f7099ac48ad9cd6eebdb329b1a8c635341f10f9c1cb188468a21c206278fce82fd50be292bd7df7b5f52a297756721aa50f597e
7
+ data.tar.gz: 6e0455df67f11f3ff31ab4a8ba8d4984b6dcfda8e56d9edc8ba616693abbbdd2f525fcfd5f012df2c98eb11026f4b957d4c3ac819919af49d1f46211b5fe637d
@@ -1,16 +1,15 @@
1
1
  # CHANGELOG
2
2
 
3
- ### Version 1.2.0
4
3
 
5
- 2019-04-08
4
+ ### Version 1.3.0
6
5
 
7
- [Compare changes](https://github.com/codevise/pageflow-before-after/compare/1-1-stable...v1.2.0)
6
+ 2019-05-20
8
7
 
9
- - Adapt page dom for pageflow 14
10
- ([#24](https://github.com/codevise/pageflow-before-after/pull/24))
11
- - Setup page type lint specs
12
- ([#23](https://github.com/codevise/pageflow-before-after/pull/23))
8
+ [Compare changes](https://github.com/codevise/pageflow-before-after/compare/1-2-stable...v1.3.0)
9
+
10
+ - Only refresh widget on resize if initialized
11
+ ([#25](https://github.com/codevise/pageflow-before-after/pull/25))
13
12
 
14
13
  See
15
- [1-1-stable branch](https://github.com/codevise/pageflow-before-after/blob/1-1-stable/CHANGELOG.md)
14
+ [1-2-stable branch](https://github.com/codevise/pageflow-before-after/blob/1-2-stable/CHANGELOG.md)
16
15
  for previous changes.
@@ -32,7 +32,12 @@ pageflow.pageType.register('before_after', _.extend({
32
32
  },
33
33
 
34
34
  resize: function(pageElement, configuration) {
35
- pageElement.find(".before_after").before_after("refresh");
35
+ var beforeAfterElement = pageElement.find('.before_after');
36
+
37
+ if (beforeAfterElement.before_after('instance')) {
38
+ beforeAfterElement.before_after('refresh');
39
+ }
40
+
36
41
  pageElement.find('.scroller').scroller("refresh");
37
42
  },
38
43
 
@@ -1,5 +1,5 @@
1
1
  module Pageflow
2
2
  module BeforeAfter
3
- VERSION = '1.2.0'.freeze
3
+ VERSION = '1.3.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pageflow-before-after
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Codevise Solutions
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-08 00:00:00.000000000 Z
11
+ date: 2019-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pageflow
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.7.5
157
+ rubygems_version: 2.7.8
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Pageflow page type for before/after image slider.