joosy 1.2.0.alpha.21 → 1.2.0.alpha.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bower.json +2 -2
- data/lib/joosy.js +4 -4
- data/package.json +1 -1
- data/src/joosy/core/modules/events.coffee +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c51bb04903944c48ab249797c9540d12e12c14e
|
4
|
+
data.tar.gz: a9933ae2203b4f036b78f2caa9ebfb37a6bf23ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ce612c5ddff5bf8f49799e7139b3ff9defdad2822018f141073de80fb1bd214118dac2eba71b80c897a3d2b828543ca791f8f1009d7e43d402bd50064d276f0
|
7
|
+
data.tar.gz: 5da3f72b3891585dc72c37d11d368b0bf242cf31c30d965debe9b37dde49012b3f311802c53b121a358275c420645422a0501550d1433c76c66ef40eafee7954
|
data/bower.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "joosy",
|
3
|
-
"version": "1.2.0-alpha.
|
3
|
+
"version": "1.2.0-alpha.22",
|
4
4
|
"main": "lib/joosy.js",
|
5
5
|
"ignore": [
|
6
6
|
"bin",
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"lib/**/*.rb"
|
15
15
|
],
|
16
16
|
"dependencies": {
|
17
|
-
"jquery": "~
|
17
|
+
"jquery": "~1.10.1",
|
18
18
|
"sugar": "~1.3.9",
|
19
19
|
"jquery-form": "~3.32.0-2013.04.09"
|
20
20
|
},
|
data/lib/joosy.js
CHANGED
@@ -355,11 +355,11 @@ var __slice = [].slice;
|
|
355
355
|
|
356
356
|
Joosy.Modules.Events = {
|
357
357
|
wait: function(name, events, callback) {
|
358
|
-
this.__oneShotEvents || (this.__oneShotEvents =
|
358
|
+
this.__oneShotEvents || (this.__oneShotEvents = {});
|
359
359
|
if (Object.isFunction(events)) {
|
360
360
|
callback = events;
|
361
361
|
events = name;
|
362
|
-
name = this.__oneShotEvents
|
362
|
+
name = Object.keys(this.__oneShotEvents).length.toString();
|
363
363
|
}
|
364
364
|
events = this.__splitEvents(events);
|
365
365
|
this.__validateEvents(events);
|
@@ -367,11 +367,11 @@ Joosy.Modules.Events = {
|
|
367
367
|
return name;
|
368
368
|
},
|
369
369
|
bind: function(name, events, callback) {
|
370
|
-
this.__boundEvents || (this.__boundEvents =
|
370
|
+
this.__boundEvents || (this.__boundEvents = {});
|
371
371
|
if (Object.isFunction(events)) {
|
372
372
|
callback = events;
|
373
373
|
events = name;
|
374
|
-
name = this.__boundEvents
|
374
|
+
name = Object.keys(this.__boundEvents).length.toString();
|
375
375
|
}
|
376
376
|
events = this.__splitEvents(events);
|
377
377
|
this.__validateEvents(events);
|
data/package.json
CHANGED
@@ -15,13 +15,13 @@ Joosy.Modules.Events =
|
|
15
15
|
# @param [Hash] options Options
|
16
16
|
#
|
17
17
|
wait: (name, events, callback) ->
|
18
|
-
@__oneShotEvents ||=
|
18
|
+
@__oneShotEvents ||= {}
|
19
19
|
|
20
20
|
# unnamed binding
|
21
21
|
if Object.isFunction(events)
|
22
22
|
callback = events
|
23
23
|
events = name
|
24
|
-
name =
|
24
|
+
name = Object.keys(@__oneShotEvents).length.toString()
|
25
25
|
|
26
26
|
events = @__splitEvents events
|
27
27
|
@__validateEvents events
|
@@ -37,13 +37,13 @@ Joosy.Modules.Events =
|
|
37
37
|
# @param [Hash] options Options
|
38
38
|
#
|
39
39
|
bind: (name, events, callback) ->
|
40
|
-
@__boundEvents ||=
|
40
|
+
@__boundEvents ||= {}
|
41
41
|
|
42
42
|
# unnamed binding
|
43
43
|
if Object.isFunction(events)
|
44
44
|
callback = events
|
45
45
|
events = name
|
46
|
-
name =
|
46
|
+
name = Object.keys(@__boundEvents).length.toString()
|
47
47
|
|
48
48
|
events = @__splitEvents events
|
49
49
|
@__validateEvents events
|