pinkman 0.9.8.1 → 0.9.8.2

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: 8cc205f11a3f3d39bc61d4f33d7ce30745061d58
4
- data.tar.gz: df73337be8d758164de6d80bbbdabeb1fb6102b1
3
+ metadata.gz: 8a4c207e261eb4c62383ac4a7e7069ca70024f7c
4
+ data.tar.gz: 0bbc015f3849349e210c007a683f1e3f5bcd6373
5
5
  SHA512:
6
- metadata.gz: e633f748f05e4ef7bdbcbe998279f9cfaf44a3a1939137f987ceec8e49f1460fdf33e7c11922e7b1e3e89a7fad2387c005d78c66decdf0dade14b4a1327feefc
7
- data.tar.gz: 0de7d512ba641b628dd25ed9b571cc66bad2a2cb88f55c48be3227bad9a87a7d65d1b1160ba610cfda2bb3f1243ad805d2cb85d5c076ec1ffc08d29bb4b1f57c
6
+ metadata.gz: a0eec236e80927bef711a9b2be9f139dd751151b53fc62d3e71d4e2bcb440881af5204c7b934f21ec555430ffc485983f3e4ba5c835c40390befde51eedabfe0
7
+ data.tar.gz: 73a09bdeed967df13e7a309d20524d9e306c31c62beaa6d52ed2163549fded7a3afa5cd4ebfad3e5a95897709ba8b0df5c4c746587b9d159fcffbad27b936b7a
@@ -139,17 +139,24 @@ class window.PinkmanRouter
139
139
  return(router)
140
140
 
141
141
 
142
+ @render: (r, callback) ->
143
+ Pinkman.state.initialize()
144
+ yieldIn = r.route.yieldIn() || @_config.yield
145
+ $(yieldIn).html("<div class='pink-yield' id='#{r.controller}'></div>") if r.route.blank
146
+ r.initialize()
147
+ window.scrollTo(0,0) unless Pinkman.router._config.freeze
148
+ callback() if typeof callback == 'function'
149
+ true
150
+
142
151
  # Search path throughout routes. On match, activate respective controllers: clears template and execute main(s) function(s)
143
152
  @activate: (path,callback) ->
144
153
  r = Pinkman.routes.match(path)
145
154
  if r? and r
146
- Pinkman.state.initialize()
147
- yieldIn = r.route.yieldIn() || @_config.yield
148
- $(yieldIn).html("<div class='pink-yield' id='#{r.controller}'></div>") if r.route.blank
149
- r.initialize()
150
- window.scrollTo(0,0) unless Pinkman.router._config.freeze
151
- callback() if typeof callback == 'function'
152
- true
155
+ if @_config.transition? and typeof @_config.transition == 'function'
156
+ @_config.transition =>
157
+ @render(r,callback)
158
+ else
159
+ @render(r,callback)
153
160
  else
154
161
  false
155
162
 
@@ -1,3 +1,3 @@
1
1
  module Pinkman
2
- VERSION = "0.9.8.1"
2
+ VERSION = "0.9.8.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinkman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.8.1
4
+ version: 0.9.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Agilso Oliveira
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-11-16 00:00:00.000000000 Z
11
+ date: 2017-11-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler