tres 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/javascripts/tres.coffee +7 -1
  3. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -38,7 +38,6 @@ class Device
38
38
 
39
39
  width: -> window.outerWidth
40
40
  height: -> window.outerHeight
41
- orientation: ->
42
41
 
43
42
  Tres.Device = new Device
44
43
 
@@ -99,6 +98,12 @@ class Tres.Screen extends Backbone.View
99
98
  @embedded = no
100
99
  @
101
100
 
101
+ # This forces the element to redraw. Currently iOS devices seem to
102
+ # randomly not finish up drawing once a transition is complete.
103
+ forceRedraw: ->
104
+ @$el.css 'opacity', .99
105
+ _.defer => @$el.css 'opacity', 1
106
+
102
107
  # Runs whatever @submit method is declared, with the added bonus of
103
108
  # un-focusing any text fields that are currently focused
104
109
  __submit: (event) ->
@@ -121,6 +126,7 @@ class Tres.Screen extends Backbone.View
121
126
  @$el.addClass 'modal' if @modal
122
127
  @$el.css '-webkit-transform': 'none'
123
128
  @active.apply @, arguments if _.isFunction @active
129
+ @forceRedraw()
124
130
  $window.trigger 'resize'
125
131
 
126
132
  # ---
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tres
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.1.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-17 00:00:00.000000000 Z
12
+ date: 2013-04-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: listen