browse-everything 0.10.3 → 0.10.4

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: 17898bd0a5bbb1f53e279e8a8800347de7086476
4
- data.tar.gz: 5cda6b2a4ab400602ab576673052e1a82ff6938d
3
+ metadata.gz: 5863bed03ca833eec713b397198c731d607234fa
4
+ data.tar.gz: e08f0deb438edda9aa2f31fc38cd7ea72c1accf3
5
5
  SHA512:
6
- metadata.gz: c2a9dd39ad44df1821369af47a20828065672878578ffe0a1e274b13f011b54560f58f930d2b0f51316a16b9d58d6ac90edeb54890eb783f7f32111daa372637
7
- data.tar.gz: e3c7fbc429e2bc49c3834bc8ed43bb5111ad7e8a6a3472e279a2fb24d131c8d56ba6e0eae252cc526f9f4723eab8f3f2d779912693da098b7d706059aae114c2
6
+ metadata.gz: 6779253458d0923ae17881205d5d4949a3520744cfcfd09b962c4219100068b02c67a2a99dabcc22b8a926d3b016c987f14f206634a3e74e9af0de2ea7c663a4
7
+ data.tar.gz: 32e870be303fc01a309cbb5d2942f76204e67663e9f3ee8f99ddfca28b9d51d770bc55166c412f41640295a0fac134f4d7e8eb8c10a8ba7dea893724b4721394
data/HISTORY.md CHANGED
@@ -1,6 +1,9 @@
1
+ ### 0.10.4 (2016-08-05)
2
+ Don't wait for auto-toggle if the explicit browseEverything() call is seen first.
3
+
1
4
  ### 0.10.3 (2016-07-12)
2
- Support turbolinks 5 and previous versions
3
- Optionally adding state to url so box and dropbox will work
5
+ Support turbolinks 5 and previous versions
6
+ Optionally adding state to url so box and dropbox will work
4
7
 
5
8
  ### 0.10.2 (2016-05-31)
6
9
  Pin google-api-client to 0.8.x
@@ -183,6 +183,7 @@ $ ->
183
183
 
184
184
  $.fn.browseEverything = (options) ->
185
185
  ctx = $(this).data('context')
186
+ options = $(this).data() unless (ctx? or options?)
186
187
  if options?
187
188
  ctx = initialize(this[0], options)
188
189
  $(this).click () ->
@@ -302,7 +303,9 @@ $ ->
302
303
 
303
304
  auto_toggle = ->
304
305
  triggers = $('*[data-toggle=browse-everything]')
305
- triggers.each () -> $(this).browseEverything($(this).data())
306
+ triggers.each () ->
307
+ ctx = $(this).data('context')
308
+ $(this).browseEverything($(this).data()) unless ctx?
306
309
 
307
310
  if Turbolinks? && Turbolinks.supported
308
311
  # Use turbolinks:load for Turbolinks 5, otherwise use the old way
@@ -1,3 +1,3 @@
1
1
  module BrowseEverything
2
- VERSION = "0.10.3"
2
+ VERSION = "0.10.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browse-everything
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carolyn Cole
@@ -13,7 +13,7 @@ authors:
13
13
  autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
- date: 2016-07-12 00:00:00.000000000 Z
16
+ date: 2016-08-05 00:00:00.000000000 Z
17
17
  dependencies:
18
18
  - !ruby/object:Gem::Dependency
19
19
  name: rails