focus_watcher 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: af69da41e1021e6c3419b5bbe9617cd2562759c8
4
- data.tar.gz: 2ef573de6ad528ea0e21db8cfec4180eb9a76b5a
3
+ metadata.gz: 9456b94c5ac7b51b782847b70f193f11aad3dd99
4
+ data.tar.gz: 1a7ad0a9d495d91c8fe8ddf1cd39e3a3c0e8f701
5
5
  SHA512:
6
- metadata.gz: 40b2a272ae705b029bb92d9f97531c82ecfbb804e61462d9154861024aaef658a5a9453f0ef1e9d837b03cf5e0dd6f432e7a0425ad8de35a1ab41decbba02479
7
- data.tar.gz: 3e7ff0a62c187df8109302fea69b3a2d7adf12b13302f685421c757f2c2ee29e715fdcba31d68f0c47e93c91182db44ac8ed1228ffcaf341b3ff84041bfc694a
6
+ metadata.gz: 32edfa7bfd93b8e2bc04477822067fe15aa225ffd81c53b5ac195e1c5d7cec98062f71e3e09e51c9a97da12fcae9e3037816b66f59f83522f5f39d1d796cab20
7
+ data.tar.gz: a950c088e5c25747a0e486071556d418af62d635fba855fabcfc2b855dd7514e1a6f54f578ff4949af9dc03760f3d8fa8d558226d27474d331a7812dc05db344
@@ -24,7 +24,7 @@ class FocusWatcher
24
24
  @focus.current = cleanTarget
25
25
  # Копируем предыдущих предков
26
26
  @focus.previousParents = @focus.currentParents
27
- @focus.currentParents = $(@focus.current).parents().toArray()
27
+ (@focus.currentParents = $(@focus.current).parents().toArray()).unshift(cleanTarget)
28
28
  # Копируем предыдущие контроллируемые элементы
29
29
  @focus.previousObserved = @focus.currentObserved
30
30
  @focus.currentObserved = []
@@ -1,3 +1,3 @@
1
1
  module FocusWatcher
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: focus_watcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Gorbunov