switch_access-rails 1.1.10 → 1.1.11

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: dde7e67ea2e43513d8782087ec6cc044551a6f7a
4
- data.tar.gz: 1c111f31dfd03217c7d05aea6f76b99ba529f07e
3
+ metadata.gz: 1bf9a8746358a95a8830069f88fe42b1ae63fbfc
4
+ data.tar.gz: 1291b28ec1a68434725ffc24f2f87441587579b3
5
5
  SHA512:
6
- metadata.gz: b1334910656312c2db04f64a7c87b4c49619658ef037ffdf7318f5fa5ceb2f78ad55a59492e8264fd7609e5c19dbd89ad1df4e2cabc79d53c9ecdf11e634652f
7
- data.tar.gz: 67cafd9d758ff7cc71d1a656f8e3a85368bf07c5d2517d12660136d6724222f8fa78211e0d78629e034d38c8af596fe5f121534a3cd23375155759451f405257
6
+ metadata.gz: e483ba1119e2fe6eee8d8f53928bd969ab3742de287f48f9e81c0c96b2d5a6d35ab4e3d74061cef9936cb65b027d27b5c221c462fbacffc340ebb9d02a33a812
7
+ data.tar.gz: 3295ebf444af9fa0d95d50cde5e592fd9170caf8e351acdd01d02233976379b1b5c49bf53b718403091894d6c022c21ca0adbaf54c1cf72b43d78fb4a05d9193
@@ -1,6 +1,6 @@
1
1
  module SwitchAccess
2
2
  module Rails
3
- VERSION = '1.1.10'
4
- SWITCHACCESSLIB_VERSION = '1.1.9'
3
+ VERSION = '1.1.11'
4
+ SWITCHACCESSLIB_VERSION = '1.1.10'
5
5
  end
6
6
  end
@@ -1,10 +1,11 @@
1
1
  ###
2
- jQuery css-watch event Coffeescript v1.2 - 11/20/2012
2
+ jQuery css-watch event Coffeescript
3
3
  http://github.com/leifcr/jquery-csswatch/
4
- (c) 2012 Leif Ringstad
4
+ (c) 2012-2013 Leif Ringstad
5
5
 
6
6
  @author Leif Ringstad
7
- @version 1.0
7
+ @version 1.2.1
8
+ @date 10/27/2013
8
9
 
9
10
  Licensed under the freeBSD license
10
11
  ###
@@ -23,7 +24,6 @@ Licensed under the freeBSD license
23
24
  @$elem = $(elem)
24
25
  @options = options
25
26
  @cb_timer_id = null
26
- @cached_function_name = ""
27
27
  @stop_requested = false
28
28
  return
29
29
 
@@ -51,7 +51,7 @@ Licensed under the freeBSD license
51
51
  @start()
52
52
 
53
53
  @
54
-
54
+
55
55
  ###
56
56
  split and trim properties
57
57
  ###
@@ -86,7 +86,7 @@ Licensed under the freeBSD license
86
86
  updateDataFromChanges: (changes) ->
87
87
  @setData property, changes[property] for property, value in Object.keys(changes)
88
88
  return
89
-
89
+
90
90
  ###
91
91
  get the datavalue stored for a property
92
92
  ###
@@ -97,22 +97,21 @@ Licensed under the freeBSD license
97
97
  get css property value (from jquery css or from custom function if needed)
98
98
  ###
99
99
  getPropertyValue: (property) ->
100
- return @$elem.css(property) if (@cached_function_name == null) || (Object.keys(@config.props_functions).length == 0)
100
+ return @$elem.css(property) if (Object.keys(@config.props_functions).length == 0)
101
101
 
102
- if @cached_function_name == ""
103
- keys = Object.keys(@config.props_functions)
104
- if property in keys
105
- @cached_function_name = @config.props_functions[property]
106
- else
107
- @cached_function_name == null
108
-
109
- if (@cached_function_name != "") && (@cached_function_name != null)
102
+ function_to_call = null
103
+ if property in Object.keys(@config.props_functions)
104
+ function_to_call = @config.props_functions[property]
105
+ else
106
+ function_to_call == null
107
+
108
+ if function_to_call != null
110
109
  if (window.ExecuteMethod)
111
- return ExecuteMethod.executeMethodByFunctionName(@cached_function_name, @$elem)
110
+ return ExecuteMethod.executeMethodByFunctionName(function_to_call, @$elem)
112
111
  else
113
112
  console.log "You are missing the ExecuteMethod library."
114
- else
115
- return @$elem.css(property)
113
+ # Return css value if no function found.
114
+ @$elem.css(property)
116
115
 
117
116
  ###
118
117
  get object of changes
@@ -157,7 +156,7 @@ Licensed under the freeBSD license
157
156
  if (Object.keys(changes).length > 0)
158
157
  if @config.use_event
159
158
  @$elem.trigger(@config.event_name, changes)
160
-
159
+
161
160
  if @config.callback != null
162
161
  @config.callback.apply(null, [changes])
163
162
  # @config.callback.call({changes})
@@ -3,7 +3,7 @@ Switch Access for webpages
3
3
  (c) 2012-2013 Leif Ringstad
4
4
  Dual-licensed under GPL or commercial license (LICENSE and LICENSE.GPL)
5
5
  Source: http://github.com/leifcr/switch_access
6
- v 1.1.9
6
+ v 1.1.10
7
7
  ###
8
8
 
9
9
  SwitchAccessCommon =
@@ -1002,10 +1002,12 @@ class SwitchAccessElement
1002
1002
  left: "offset().left"
1003
1003
  bottom: "offset().bottom"
1004
1004
  right: "offset().right"
1005
- outerwidth: "outerWidth(false)"
1006
- outerheight: "outerHeight(false)"
1005
+ width: "outerWidth(false)"
1006
+ height: "outerHeight(false)"
1007
1007
  }
1008
- callback: (->@callbackForResize????)
1008
+ callback: (=>
1009
+ @callbackForResize()
1010
+ )
1009
1011
  })
1010
1012
 
1011
1013
  ###
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: switch_access-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.10
4
+ version: 1.1.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leif Ringstad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-10-26 00:00:00.000000000 Z
11
+ date: 2013-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: actionpack
@@ -66,7 +66,7 @@ dependencies:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
68
  version: 10.0.2
69
- description: Integrates jquery Switch Access plugin 1.1.9 into rails apps.
69
+ description: Integrates jquery Switch Access plugin 1.1.10 into rails apps.
70
70
  email: leifcr@gmail.com
71
71
  executables: []
72
72
  extensions: []