rbjs 0.9.13 → 0.9.14
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rbjs.rb +1 -0
- data/lib/rbjs/version.rb +1 -1
- data/readme.md +12 -0
- metadata +2 -2
data/lib/rbjs.rb
CHANGED
data/lib/rbjs/version.rb
CHANGED
data/readme.md
CHANGED
@@ -98,4 +98,16 @@ and run _bundle install_ to install the gem and it's dependencies.
|
|
98
98
|
element.html(currentValue+4)
|
99
99
|
})
|
100
100
|
|
101
|
+
### And even more stuff
|
102
|
+
|
103
|
+
# Raw Javascript:
|
104
|
+
self << 'myFunc($)'
|
105
|
+
|
106
|
+
# Hashes and Arrays
|
107
|
+
foo[3]= {name => @user.name}
|
108
|
+
|
109
|
+
# lambdas
|
110
|
+
func = lambda{ window.alert(@message)}
|
111
|
+
setTimeout func, 1000
|
112
|
+
|
101
113
|
More to come.
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rbjs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.9.
|
5
|
+
version: 0.9.14
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Stefan Buhrmester
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-11-
|
13
|
+
date: 2011-11-04 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|