coffee_middleware 0.0.7 → 0.0.8

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: 85ff0b83866022103896174afffdf1485f3153a2
4
- data.tar.gz: 3626a7150dd0eed253107b181d135aea60140faa
3
+ metadata.gz: da2f7dec96dcc3413e88c67ba8b9640c95281261
4
+ data.tar.gz: da0b2b8a90665657e68a6919e63ae666e76cf0f9
5
5
  SHA512:
6
- metadata.gz: 09e923ccf58e943e977fd75ef12798930238c917eab2ce0de9a467c34bf4a4fdd69cb205b447f748da34b820e414368823a7529a15bd57246ae3a55567732e8c
7
- data.tar.gz: 565f743f1f5fbc548f584fe5af2208c80de08b627687354f3c5333e31b18e8314264823fb3a880cfa97e33d6a2458fb3db6791a9983ea7898afae9eef071326d
6
+ metadata.gz: 004259339dec212099bbc3b75776db6d17259e85f648792d29ce86980d5e7392ecbb8bf426aca0dda45ed2d028c070e284b2aaa423eebc61d824543a05ce079f
7
+ data.tar.gz: e6ec61da8931e0ee3869f2ef379dddca87530feacdc6f71864f0d651333252d09cf2af81b8e9df8f9372eabf736b87456ab0a8999d74261b6e1316fe3cc22fc3
@@ -1,3 +1,3 @@
1
1
  module CoffeeMiddleware
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -56,7 +56,9 @@ class CoffeeMiddleware.System.Base
56
56
  @handleSubscriptions: ->
57
57
  for event in @subscribeTo
58
58
  ($ @scope).on event, (e) =>
59
- @[@bindMethod].apply(@, [@selector, e.target])
59
+ parent = $(e.target).parent()
60
+ context = if parent.length > 0 then parent else e.target
61
+ @[@bindMethod].apply(@, [@selector, context])
60
62
 
61
63
 
62
64
  @addToCache: (name, element) ->
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffee_middleware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juri Semjonov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-11-19 00:00:00.000000000 Z
12
+ date: 2013-11-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: coffee-script