switch_access-rails 1.1.10 → 1.1.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bf9a8746358a95a8830069f88fe42b1ae63fbfc
|
4
|
+
data.tar.gz: 1291b28ec1a68434725ffc24f2f87441587579b3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e483ba1119e2fe6eee8d8f53928bd969ab3742de287f48f9e81c0c96b2d5a6d35ab4e3d74061cef9936cb65b027d27b5c221c462fbacffc340ebb9d02a33a812
|
7
|
+
data.tar.gz: 3295ebf444af9fa0d95d50cde5e592fd9170caf8e351acdd01d02233976379b1b5c49bf53b718403091894d6c022c21ca0adbaf54c1cf72b43d78fb4a05d9193
|
@@ -1,10 +1,11 @@
|
|
1
1
|
###
|
2
|
-
jQuery css-watch event Coffeescript
|
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.
|
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 (
|
100
|
+
return @$elem.css(property) if (Object.keys(@config.props_functions).length == 0)
|
101
101
|
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
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(
|
110
|
+
return ExecuteMethod.executeMethodByFunctionName(function_to_call, @$elem)
|
112
111
|
else
|
113
112
|
console.log "You are missing the ExecuteMethod library."
|
114
|
-
|
115
|
-
|
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.
|
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
|
-
|
1006
|
-
|
1005
|
+
width: "outerWidth(false)"
|
1006
|
+
height: "outerHeight(false)"
|
1007
1007
|
}
|
1008
|
-
callback: (
|
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.
|
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-
|
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.
|
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: []
|