sinatra-cometio 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +4 -0
- data/lib/js/cometio.js +1 -1
- data/lib/sinatra-cometio/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4f1dc641e7df6ebe49c7a99f041e1de6d293438
|
4
|
+
data.tar.gz: a39552b2bb11e74004cfb78871fccfbb17d683b1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3cedac7a912b90b559dbde3586ef9519597960854607014d7b09596a23f99e36f71e66d9890cb1b2874b1302af6981a3564317545fd823e6de4e059f1b65112
|
7
|
+
data.tar.gz: c81fdfb4e1128cba7881ba80dafe430f1fbb2ef46f7690e8f5a55ec4b8989a4680659bf8aca3aab9d53c4182104eb23d22084fe8f3fa2e1019f3f040b2209f2a
|
data/History.txt
CHANGED
data/lib/js/cometio.js
CHANGED
@@ -63,7 +63,7 @@ var CometIO = function(){
|
|
63
63
|
url : self.url,
|
64
64
|
data : {session : self.session},
|
65
65
|
success : function(data_arr){
|
66
|
-
if(data_arr !== null
|
66
|
+
if(data_arr !== null && typeof data_arr == "object" && !!data_arr.length){
|
67
67
|
for(var i = 0; i < data_arr.length; i++){
|
68
68
|
var data = data_arr[i];
|
69
69
|
if(data) self.emit(data.type, data.data);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-cometio
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sho Hashimoto
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|