joosy 1.1.0 → 1.1.1

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: 9d9a1763a50a347c0706903668f7f81413c90f54
4
- data.tar.gz: 3f2c91ba7364f24eb13c9895f5c1032cd2609819
3
+ metadata.gz: ddc6b93e9e3b8aa205806ee270eca79500cd090e
4
+ data.tar.gz: a36ea2e0446bb4919e969773e43007f352a77f22
5
5
  SHA512:
6
- metadata.gz: 735b829073162a372a09307e81b7b3006efc43469c7e901effc43af77bd6154168f5a3f1eb40bab06b420b2f77d6a6981802b83dc9b7752a8a510665c9f59bb8
7
- data.tar.gz: 6a059d4606eb83365012b9fe23f3242f1591a596249d57e2c312064e6c71572813e85c7f30e0f2df242680e8d1b73c424f42a219e8f37cabeccc7da22915a1a3
6
+ metadata.gz: ffa3c3ca9308f0ad2344ae7c32181c28ce4cced85511b3f53b9ea06aeb2063e5c9bd0c4b70d1fdea27f1fa72d7aabff14bb8c956e31d7a5d35b4e03dce531136
7
+ data.tar.gz: e9b42a067166414738e7ce315c185330dcb51e51266490eb08a73615452a9d0a6734c6b641f8c8bb83c74828af7c8f583b196c12d957a264f40f9dd71c5c8d4c
data/Gemfile.lock CHANGED
@@ -11,7 +11,7 @@ GIT
11
11
  PATH
12
12
  remote: .
13
13
  specs:
14
- joosy (1.1.0)
14
+ joosy (1.1.1)
15
15
  haml_coffee_assets
16
16
  sprockets
17
17
 
@@ -1,3 +1,5 @@
1
+ #= require joosy/core/joosy
2
+
1
3
  #
2
4
  # Basic events implementation
3
5
  #
@@ -13,13 +15,13 @@ Joosy.Modules.Events =
13
15
  # @param [Hash] options Options
14
16
  #
15
17
  wait: (name, events, callback) ->
16
- @__oneShotEvents ||= Object.extended()
18
+ @__oneShotEvents ||= {}
17
19
 
18
20
  # unnamed binding
19
21
  if Object.isFunction(events)
20
22
  callback = events
21
23
  events = name
22
- name = @__oneShotEvents.keys().length.toString()
24
+ name = Object.keys(@__oneShotEvents).length.toString()
23
25
 
24
26
  events = @__splitEvents events
25
27
  @__validateEvents events
@@ -35,13 +37,13 @@ Joosy.Modules.Events =
35
37
  # @param [Hash] options Options
36
38
  #
37
39
  bind: (name, events, callback) ->
38
- @__boundEvents ||= Object.extended()
40
+ @__boundEvents ||= {}
39
41
 
40
42
  # unnamed binding
41
43
  if Object.isFunction(events)
42
44
  callback = events
43
45
  events = name
44
- name = @__boundEvents.keys().length.toString()
46
+ name = Object.keys(@__boundEvents).length.toString()
45
47
 
46
48
  events = @__splitEvents events
47
49
  @__validateEvents events
data/lib/joosy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Joosy
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -112,41 +112,6 @@ describe "Joosy.Modules.Renderer", ->
112
112
  runs ->
113
113
  expect(elem.text()).toBe "suck"
114
114
 
115
- it "renders collections and track its new items", ->
116
- class Foo extends Joosy.Resource.Generic
117
- @entity 'foo'
118
-
119
- data = new Joosy.Resource.Collection(Foo)
120
- data.load [
121
- {key: 1},
122
- {key: 2}
123
- ]
124
-
125
- @TestContainer.view (locals) ->
126
- template = -> @data.map((item) -> item('key')).join('')
127
- @renderDynamic(template, locals)
128
-
129
- elem = $("<div></div>")
130
- @ground.append elem
131
- elem.html @dummyContainer.__renderer(data)
132
-
133
- waits 0
134
-
135
- runs ->
136
- expect(elem.text()).toBe "12"
137
- data.add Foo.build(key: 3)
138
-
139
- waits 0
140
-
141
- runs ->
142
- expect(elem.text()).toBe "123"
143
- data.at(2)('key', 6)
144
-
145
- waits 0
146
-
147
- runs ->
148
- expect(elem.text()).toBe "126"
149
-
150
115
  it "debounces morpher updates", ->
151
116
  @TestContainer.view (locals) ->
152
117
  template = -> @object.value
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: joosy
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Boris Staal
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-06-23 00:00:00.000000000 Z
14
+ date: 2013-07-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: sprockets