ustyle 1.16.1 → 1.16.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/dist/ustyle-content.css +1 -1
- data/dist/ustyle-latest.css +1 -1
- data/dist/ustyle.js +93 -46
- data/dist/ustyle.json +1 -1
- data/dist/ustyle.min.js +1 -1
- data/lib/ustyle/version.rb +1 -1
- data/package.json +1 -1
- data/vendor/assets/javascripts/ustyle/classtoggler.js +38 -20
- data/vendor/assets/javascripts/ustyle/overlay.js +46 -19
- data/vendor/assets/javascripts/ustyle/tabs.js +1 -6
- data/vendor/assets/javascripts/ustyle/utils.js +8 -1
- metadata +2 -2
@@ -4,6 +4,7 @@ window.Tabs = (function(Utils) {
|
|
4
4
|
var hasClass = Utils.hasClass;
|
5
5
|
var removeClass = Utils.removeClass;
|
6
6
|
var setOptions = Utils.setOptions;
|
7
|
+
var forEach = Utils.forEach;
|
7
8
|
|
8
9
|
Tabs.prototype.defaults = {
|
9
10
|
tabContainer: ".us-tabs",
|
@@ -161,11 +162,5 @@ window.Tabs = (function(Utils) {
|
|
161
162
|
return clicked.getAttribute("data-target") || clicked.getAttribute("href");
|
162
163
|
};
|
163
164
|
|
164
|
-
var forEach = function (array, callback, scope) {
|
165
|
-
for (var i = array.length - 1; i >= 0; i--) {
|
166
|
-
callback.call(scope, i, array[i]);
|
167
|
-
}
|
168
|
-
};
|
169
|
-
|
170
165
|
return Tabs;
|
171
166
|
})(this.Utils);
|
@@ -94,6 +94,12 @@ var requestAnimationFrame = (function(window) {
|
|
94
94
|
});
|
95
95
|
})(window);
|
96
96
|
|
97
|
+
var forEach = function (array, callback, scope) {
|
98
|
+
for (var i = array.length - 1; i >= 0; i--) {
|
99
|
+
callback.call(scope, i, array[i]);
|
100
|
+
}
|
101
|
+
};
|
102
|
+
|
97
103
|
this.Utils = {
|
98
104
|
addClass: addClass,
|
99
105
|
removeClass: removeClass,
|
@@ -102,5 +108,6 @@ this.Utils = {
|
|
102
108
|
setOptions: setOptions,
|
103
109
|
deleteUndefined: deleteUndefined,
|
104
110
|
transformKey: transformKey,
|
105
|
-
requestAnimationFrame: requestAnimationFrame
|
111
|
+
requestAnimationFrame: requestAnimationFrame,
|
112
|
+
forEach: forEach
|
106
113
|
};
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ustyle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.16.
|
4
|
+
version: 1.16.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- uSwitch Limited
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2018-01-
|
16
|
+
date: 2018-01-10 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: sass
|