batman-rails-flo 0.0.5 → 0.1.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b2dd57e65a26f4cd0836c1c24f1dcb449dc86897
|
4
|
+
data.tar.gz: 0b6b59c95896c52c7d6d7f434a1bb2c3823f82c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72a1c425002ccfe743505c848f49d4a6e52b2cf13557a7923887c7d9a08163d7622da62e22d9edd35fb022049625dc0c90049f07c1d75361abe56b5fd09480c1
|
7
|
+
data.tar.gz: fe4b1b0305b3bad0852b107f73ef5be087fe44b0c80e555dc3992a44085db84aa2e350e76073ac24a9103d9a153dd729e90749c336d312f63b2a796167629242
|
@@ -52,4 +52,5 @@ handleLiveReloadEvent = (ev) ->
|
|
52
52
|
|
53
53
|
if !window._batmanLiveReload
|
54
54
|
window.addEventListener('fb-flo-reload', handleLiveReloadEvent)
|
55
|
+
console.log("batman-rails-flo is listening for changes!")
|
55
56
|
window._batmanLiveReload = true # only attach the listener once, just in case
|
@@ -8,12 +8,15 @@ Batman.Object::liveReload = (newConstructor) ->
|
|
8
8
|
Batman.initializeObject(@)
|
9
9
|
@refreshProperties()
|
10
10
|
|
11
|
+
Batman.Property::forceRefresh = ->
|
12
|
+
@_accessor = false
|
13
|
+
@refresh()
|
11
14
|
|
12
15
|
Batman.Object::refreshProperties = ->
|
13
16
|
@_batman.properties.forEach (name, property) ->
|
14
17
|
if property instanceof Batman.Keypath
|
15
|
-
property.terminalProperty().
|
16
|
-
property.
|
18
|
+
property.terminalProperty().forceRefresh()
|
19
|
+
property.forceRefresh()
|
17
20
|
|
18
21
|
###
|
19
22
|
This will force reload of class accessors that are rendered in views.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: batman-rails-flo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Mosolgo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|