foundation-rails 5.5.1.0 → 5.5.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. data/bower.json +2 -2
  2. data/lib/foundation/rails/version.rb +1 -1
  3. data/update-gem.sh +12 -7
  4. data/vendor/assets/javascripts/foundation.js +2 -2
  5. data/vendor/assets/javascripts/foundation/foundation.abide.js +62 -40
  6. data/vendor/assets/javascripts/foundation/foundation.accordion.js +7 -7
  7. data/vendor/assets/javascripts/foundation/foundation.alert.js +3 -3
  8. data/vendor/assets/javascripts/foundation/foundation.clearing.js +46 -48
  9. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +71 -62
  10. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +18 -14
  11. data/vendor/assets/javascripts/foundation/foundation.interchange.js +31 -25
  12. data/vendor/assets/javascripts/foundation/foundation.joyride.js +81 -73
  13. data/vendor/assets/javascripts/foundation/foundation.js +54 -41
  14. data/vendor/assets/javascripts/foundation/foundation.magellan.js +44 -39
  15. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +19 -19
  16. data/vendor/assets/javascripts/foundation/foundation.orbit.js +133 -129
  17. data/vendor/assets/javascripts/foundation/foundation.reveal.js +73 -51
  18. data/vendor/assets/javascripts/foundation/foundation.slider.js +63 -67
  19. data/vendor/assets/javascripts/foundation/foundation.tab.js +39 -19
  20. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +30 -23
  21. data/vendor/assets/javascripts/foundation/foundation.topbar.js +66 -59
  22. data/vendor/assets/stylesheets/foundation/_functions.scss +1 -1
  23. data/vendor/assets/stylesheets/foundation/_settings.scss +99 -77
  24. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +2 -2
  25. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +1 -0
  26. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +1 -1
  27. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +7 -4
  28. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +2 -1
  29. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +11 -2
  30. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +1 -0
  31. data/vendor/assets/stylesheets/foundation/components/_forms.scss +13 -6
  32. data/vendor/assets/stylesheets/foundation/components/_global.scss +3 -3
  33. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +32 -2
  34. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +6 -4
  35. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +15 -29
  36. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +12 -0
  37. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +1 -2
  38. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +3 -1
  39. data/vendor/assets/stylesheets/foundation/components/_toolbar.scss +3 -1
  40. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +10 -3
  41. data/vendor/assets/stylesheets/foundation/components/_type.scss +1 -62
  42. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +78 -12
  43. metadata +2 -3
  44. data/vendor/assets/_settings.scss +0 -1445
@@ -4,34 +4,34 @@
4
4
  Foundation.libs.reveal = {
5
5
  name : 'reveal',
6
6
 
7
- version : '5.5.0',
7
+ version : '5.5.1',
8
8
 
9
9
  locked : false,
10
10
 
11
11
  settings : {
12
- animation: 'fadeAndPop',
13
- animation_speed: 250,
14
- close_on_background_click: true,
15
- close_on_esc: true,
16
- dismiss_modal_class: 'close-reveal-modal',
17
- bg_class: 'reveal-modal-bg',
18
- bg_root_element: 'body',
19
- root_element: 'body',
20
- open: function(){},
21
- opened: function(){},
22
- close: function(){},
23
- closed: function(){},
12
+ animation : 'fadeAndPop',
13
+ animation_speed : 250,
14
+ close_on_background_click : true,
15
+ close_on_esc : true,
16
+ dismiss_modal_class : 'close-reveal-modal',
17
+ multiple_opened : false,
18
+ bg_class : 'reveal-modal-bg',
19
+ root_element : 'body',
20
+ open : function(){},
21
+ opened : function(){},
22
+ close : function(){},
23
+ closed : function(){},
24
24
  bg : $('.reveal-modal-bg'),
25
25
  css : {
26
26
  open : {
27
- 'opacity': 0,
28
- 'visibility': 'visible',
27
+ 'opacity' : 0,
28
+ 'visibility' : 'visible',
29
29
  'display' : 'block'
30
30
  },
31
31
  close : {
32
- 'opacity': 1,
33
- 'visibility': 'hidden',
34
- 'display': 'none'
32
+ 'opacity' : 1,
33
+ 'visibility' : 'hidden',
34
+ 'display' : 'none'
35
35
  }
36
36
  }
37
37
  },
@@ -49,7 +49,7 @@
49
49
  .off('.reveal')
50
50
  .on('click.fndtn.reveal', '[' + this.add_namespace('data-reveal-id') + ']:not([disabled])', function (e) {
51
51
  e.preventDefault();
52
-
52
+
53
53
  if (!self.locked) {
54
54
  var element = S(this),
55
55
  ajax = element.data(self.data_attr('reveal-ajax'));
@@ -61,16 +61,14 @@
61
61
  } else {
62
62
  var url = ajax === true ? element.attr('href') : ajax;
63
63
 
64
- self.open.call(self, element, {url: url});
64
+ self.open.call(self, element, {url : url});
65
65
  }
66
66
  }
67
67
  });
68
68
 
69
69
  S(document)
70
70
  .on('click.fndtn.reveal', this.close_targets(), function (e) {
71
-
72
71
  e.preventDefault();
73
-
74
72
  if (!self.locked) {
75
73
  var settings = S('[' + self.attr_name() + '].open').data(self.attr_name(true) + '-init') || self.settings,
76
74
  bg_clicked = S(e.target)[0] === S('.' + settings.bg_class)[0];
@@ -88,7 +86,7 @@
88
86
  }
89
87
  });
90
88
 
91
- if(S('[' + self.attr_name() + ']', this.scope).length > 0) {
89
+ if (S('[' + self.attr_name() + ']', this.scope).length > 0) {
92
90
  S(this.scope)
93
91
  // .off('.reveal')
94
92
  .on('open.fndtn.reveal', this.settings.open)
@@ -135,7 +133,6 @@
135
133
  return true;
136
134
  },
137
135
 
138
-
139
136
  open : function (target, ajax_settings) {
140
137
  var self = this,
141
138
  modal;
@@ -156,7 +153,6 @@
156
153
  var settings = modal.data(self.attr_name(true) + '-init');
157
154
  settings = settings || this.settings;
158
155
 
159
-
160
156
  if (modal.hasClass('open') && target.attr('data-reveal-id') == modal.attr('id')) {
161
157
  return self.close(modal);
162
158
  }
@@ -170,7 +166,8 @@
170
166
  }
171
167
 
172
168
  this.key_up_on(modal); // PATCH #3: turning on key up capture only when a reveal window is open
173
- modal.trigger('open').trigger('open.fndtn.reveal');
169
+
170
+ modal.on('open.fndtn.reveal').trigger('open.fndtn.reveal');
174
171
 
175
172
  if (open_modal.length < 1) {
176
173
  this.toggle_bg(modal, true);
@@ -178,13 +175,17 @@
178
175
 
179
176
  if (typeof ajax_settings === 'string') {
180
177
  ajax_settings = {
181
- url: ajax_settings
178
+ url : ajax_settings
182
179
  };
183
180
  }
184
181
 
185
182
  if (typeof ajax_settings === 'undefined' || !ajax_settings.url) {
186
183
  if (open_modal.length > 0) {
187
- this.hide(open_modal, settings.css.close);
184
+ if (settings.multiple_opened) {
185
+ this.to_back(open_modal);
186
+ } else {
187
+ this.hide(open_modal, settings.css.close);
188
+ }
188
189
  }
189
190
 
190
191
  this.show(modal, settings.css.open);
@@ -192,10 +193,12 @@
192
193
  var old_success = typeof ajax_settings.success !== 'undefined' ? ajax_settings.success : null;
193
194
 
194
195
  $.extend(ajax_settings, {
195
- success: function (data, textStatus, jqXHR) {
196
+ success : function (data, textStatus, jqXHR) {
196
197
  if ( $.isFunction(old_success) ) {
197
198
  var result = old_success(data, textStatus, jqXHR);
198
- if (typeof result == 'string') data = result;
199
+ if (typeof result == 'string') {
200
+ data = result;
201
+ }
199
202
  }
200
203
 
201
204
  modal.html(data);
@@ -203,7 +206,11 @@
203
206
  self.S(modal).children().foundation();
204
207
 
205
208
  if (open_modal.length > 0) {
206
- self.hide(open_modal, settings.css.close);
209
+ if (settings.multiple_opened) {
210
+ this.to_back(open_modal);
211
+ } else {
212
+ this.hide(open_modal, settings.css.close);
213
+ }
207
214
  }
208
215
  self.show(modal, settings.css.open);
209
216
  }
@@ -224,8 +231,18 @@
224
231
  this.locked = true;
225
232
  this.key_up_off(modal); // PATCH #3: turning on key up capture only when a reveal window is open
226
233
  modal.trigger('close').trigger('close.fndtn.reveal');
227
- this.toggle_bg(modal, false);
228
- this.hide(open_modals, settings.css.close, settings);
234
+
235
+ if ((settings.multiple_opened && open_modals.length === 1) || !settings.multiple_opened || modal.length > 1) {
236
+ this.toggle_bg(modal, false);
237
+ this.to_front(modal);
238
+ }
239
+
240
+ if (settings.multiple_opened) {
241
+ this.hide(modal, settings.css.close, settings);
242
+ this.to_front($($.makeArray(open_modals).reverse()[1]));
243
+ } else {
244
+ this.hide(open_modals, settings.css.close, settings);
245
+ }
229
246
  }
230
247
  },
231
248
 
@@ -239,13 +256,10 @@
239
256
  return base;
240
257
  },
241
258
 
242
- toggle_bg : function (el, modal, state) {
243
- var settings = el.data(this.attr_name(true) + '-init') || this.settings,
244
- bg_root_element = settings.bg_root_element; // Adding option to specify the background root element fixes scrolling issue
245
-
259
+ toggle_bg : function (modal, state) {
246
260
  if (this.S('.' + this.settings.bg_class).length === 0) {
247
261
  this.settings.bg = $('<div />', {'class': this.settings.bg_class})
248
- .appendTo(bg_root_element).hide();
262
+ .appendTo('body').hide();
249
263
  }
250
264
 
251
265
  var visible = this.settings.bg.filter(':visible').length > 0;
@@ -267,7 +281,7 @@
267
281
  if (el.parent(root_element).length === 0) {
268
282
  var placeholder = el.wrap('<div style="display: none;" />').parent();
269
283
 
270
- el.on('closed.fndtn.reveal.wrapped', function() {
284
+ el.on('closed.fndtn.reveal.wrapped', function () {
271
285
  el.detach().appendTo(placeholder);
272
286
  el.unwrap().unbind('closed.fndtn.reveal.wrapped');
273
287
  });
@@ -280,9 +294,9 @@
280
294
  this.locked = false;
281
295
  }
282
296
  if (animData.pop) {
283
- css.top = $(root_element).scrollTop() - el.data('offset') + 'px'; //adding root_element instead of window for scrolling offset if modal trigger is below the fold
297
+ css.top = $(window).scrollTop() - el.data('offset') + 'px';
284
298
  var end_css = {
285
- top: $(root_element).scrollTop() + el.data('css-top') + 'px', //adding root_element instead of window for scrolling offset if modal trigger is below the fold
299
+ top: $(window).scrollTop() + el.data('css-top') + 'px',
286
300
  opacity: 1
287
301
  };
288
302
 
@@ -298,7 +312,7 @@
298
312
  }
299
313
 
300
314
  if (animData.fade) {
301
- css.top = $(root_element).scrollTop() + el.data('css-top') + 'px'; //adding root_element instead of window for scrolling offset if modal trigger is below the fold
315
+ css.top = $(window).scrollTop() + el.data('css-top') + 'px';
302
316
  var end_css = {opacity: 1};
303
317
 
304
318
  return setTimeout(function () {
@@ -312,7 +326,7 @@
312
326
  }.bind(this), settings.animation_speed / 2);
313
327
  }
314
328
 
315
- return el.css(css).show().css({opacity: 1}).addClass('open').trigger('opened').trigger('opened.fndtn.reveal');
329
+ return el.css(css).show().css({opacity : 1}).addClass('open').trigger('opened').trigger('opened.fndtn.reveal');
316
330
  }
317
331
 
318
332
  var settings = this.settings;
@@ -326,12 +340,20 @@
326
340
 
327
341
  return el.show();
328
342
  },
343
+
344
+ to_back : function(el) {
345
+ el.addClass('toback');
346
+ },
347
+
348
+ to_front : function(el) {
349
+ el.removeClass('toback');
350
+ },
329
351
 
330
352
  hide : function (el, css) {
331
353
  // is modal
332
354
  if (css) {
333
- var settings = el.data(this.attr_name(true) + '-init') || this.settings,
334
- root_element = settings.root_element;
355
+ var settings = el.data(this.attr_name(true) + '-init');
356
+ settings = settings || this.settings;
335
357
 
336
358
  var animData = getAnimationData(settings.animation);
337
359
  if (!animData.animate) {
@@ -339,7 +361,7 @@
339
361
  }
340
362
  if (animData.pop) {
341
363
  var end_css = {
342
- top: - $(root_element).scrollTop() - el.data('offset') + 'px', //adding root_element instead of window for scrolling offset if modal trigger is below the fold
364
+ top: - $(window).scrollTop() - el.data('offset') + 'px',
343
365
  opacity: 0
344
366
  };
345
367
 
@@ -354,7 +376,7 @@
354
376
  }
355
377
 
356
378
  if (animData.fade) {
357
- var end_css = {opacity: 0};
379
+ var end_css = {opacity : 0};
358
380
 
359
381
  return setTimeout(function () {
360
382
  return el
@@ -407,7 +429,7 @@
407
429
  }
408
430
  },
409
431
 
410
- data_attr: function (str) {
432
+ data_attr : function (str) {
411
433
  if (this.namespace.length > 0) {
412
434
  return this.namespace + '-' + str;
413
435
  }
@@ -441,9 +463,9 @@
441
463
  var fade = /fade/i.test(str);
442
464
  var pop = /pop/i.test(str);
443
465
  return {
444
- animate: fade || pop,
445
- pop: pop,
446
- fade: fade
466
+ animate : fade || pop,
467
+ pop : pop,
468
+ fade : fade
447
469
  };
448
470
  }
449
471
  }(jQuery, window, window.document));
@@ -4,41 +4,41 @@
4
4
  Foundation.libs.slider = {
5
5
  name : 'slider',
6
6
 
7
- version : '5.5.0',
8
-
9
- settings: {
10
- start: 0,
11
- end: 100,
12
- step: 1,
13
- precision: null,
14
- initial: null,
15
- display_selector: '',
16
- vertical: false,
17
- trigger_input_change: false,
18
- on_change: function(){}
7
+ version : '5.5.1',
8
+
9
+ settings : {
10
+ start : 0,
11
+ end : 100,
12
+ step : 1,
13
+ precision : null,
14
+ initial : null,
15
+ display_selector : '',
16
+ vertical : false,
17
+ trigger_input_change : false,
18
+ on_change : function () {}
19
19
  },
20
20
 
21
21
  cache : {},
22
22
 
23
23
  init : function (scope, method, options) {
24
- Foundation.inherit(this,'throttle');
24
+ Foundation.inherit(this, 'throttle');
25
25
  this.bindings(method, options);
26
26
  this.reflow();
27
27
  },
28
28
 
29
- events : function() {
29
+ events : function () {
30
30
  var self = this;
31
31
 
32
32
  $(this.scope)
33
33
  .off('.slider')
34
34
  .on('mousedown.fndtn.slider touchstart.fndtn.slider pointerdown.fndtn.slider',
35
- '[' + self.attr_name() + ']:not(.disabled, [disabled]) .range-slider-handle', function(e) {
35
+ '[' + self.attr_name() + ']:not(.disabled, [disabled]) .range-slider-handle', function (e) {
36
36
  if (!self.cache.active) {
37
37
  e.preventDefault();
38
38
  self.set_active_slider($(e.target));
39
39
  }
40
40
  })
41
- .on('mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider', function(e) {
41
+ .on('mousemove.fndtn.slider touchmove.fndtn.slider pointermove.fndtn.slider', function (e) {
42
42
  if (!!self.cache.active) {
43
43
  e.preventDefault();
44
44
  if ($.data(self.cache.active[0], 'settings').vertical) {
@@ -52,48 +52,46 @@
52
52
  }
53
53
  }
54
54
  })
55
- .on('mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider', function(e) {
55
+ .on('mouseup.fndtn.slider touchend.fndtn.slider pointerup.fndtn.slider', function (e) {
56
56
  self.remove_active_slider();
57
57
  })
58
- .on('change.fndtn.slider', function(e) {
58
+ .on('change.fndtn.slider', function (e) {
59
59
  self.settings.on_change();
60
60
  });
61
61
 
62
62
  self.S(window)
63
- .on('resize.fndtn.slider', self.throttle(function(e) {
63
+ .on('resize.fndtn.slider', self.throttle(function (e) {
64
64
  self.reflow();
65
65
  }, 300));
66
66
  },
67
67
 
68
- get_cursor_position : function(e, xy) {
68
+ get_cursor_position : function (e, xy) {
69
69
  var pageXY = 'page' + xy.toUpperCase(),
70
70
  clientXY = 'client' + xy.toUpperCase(),
71
71
  position;
72
72
 
73
73
  if (typeof e[pageXY] !== 'undefined') {
74
74
  position = e[pageXY];
75
- }
76
- else if (typeof e.originalEvent[clientXY] !== 'undefined') {
75
+ } else if (typeof e.originalEvent[clientXY] !== 'undefined') {
77
76
  position = e.originalEvent[clientXY];
78
- }
79
- else if (e.originalEvent.touches && e.originalEvent.touches[0] && typeof e.originalEvent.touches[0][clientXY] !== 'undefined') {
77
+ } else if (e.originalEvent.touches && e.originalEvent.touches[0] && typeof e.originalEvent.touches[0][clientXY] !== 'undefined') {
80
78
  position = e.originalEvent.touches[0][clientXY];
81
- }
82
- else if(e.currentPoint && typeof e.currentPoint[xy] !== 'undefined') {
79
+ } else if (e.currentPoint && typeof e.currentPoint[xy] !== 'undefined') {
83
80
  position = e.currentPoint[xy];
84
81
  }
82
+
85
83
  return position;
86
84
  },
87
85
 
88
- set_active_slider : function($handle) {
86
+ set_active_slider : function ($handle) {
89
87
  this.cache.active = $handle;
90
88
  },
91
89
 
92
- remove_active_slider : function() {
90
+ remove_active_slider : function () {
93
91
  this.cache.active = null;
94
92
  },
95
93
 
96
- calculate_position : function($handle, cursor_x) {
94
+ calculate_position : function ($handle, cursor_x) {
97
95
  var self = this,
98
96
  settings = $.data($handle[0], 'settings'),
99
97
  handle_l = $.data($handle[0], 'handle_l'),
@@ -101,16 +99,16 @@
101
99
  bar_l = $.data($handle[0], 'bar_l'),
102
100
  bar_o = $.data($handle[0], 'bar_o');
103
101
 
104
- requestAnimationFrame(function(){
102
+ requestAnimationFrame(function () {
105
103
  var pct;
106
104
 
107
105
  if (Foundation.rtl && !settings.vertical) {
108
- pct = self.limit_to(((bar_o+bar_l-cursor_x)/bar_l),0,1);
106
+ pct = self.limit_to(((bar_o + bar_l - cursor_x) / bar_l), 0, 1);
109
107
  } else {
110
- pct = self.limit_to(((cursor_x-bar_o)/bar_l),0,1);
108
+ pct = self.limit_to(((cursor_x - bar_o) / bar_l), 0, 1);
111
109
  }
112
110
 
113
- pct = settings.vertical ? 1-pct : pct;
111
+ pct = settings.vertical ? 1 - pct : pct;
114
112
 
115
113
  var norm = self.normalized_value(pct, settings.start, settings.end, settings.step, settings.precision);
116
114
 
@@ -118,13 +116,13 @@
118
116
  });
119
117
  },
120
118
 
121
- set_ui : function($handle, value) {
119
+ set_ui : function ($handle, value) {
122
120
  var settings = $.data($handle[0], 'settings'),
123
121
  handle_l = $.data($handle[0], 'handle_l'),
124
122
  bar_l = $.data($handle[0], 'bar_l'),
125
123
  norm_pct = this.normalized_percentage(value, settings.start, settings.end),
126
- handle_offset = norm_pct*(bar_l-handle_l)-1,
127
- progress_bar_length = norm_pct*100,
124
+ handle_offset = norm_pct * (bar_l - handle_l) - 1,
125
+ progress_bar_length = norm_pct * 100,
128
126
  $handle_parent = $handle.parent(),
129
127
  $hidden_inputs = $handle.parent().children('input[type=hidden]');
130
128
 
@@ -150,14 +148,14 @@
150
148
 
151
149
  if (!$handle[0].hasAttribute('aria-valuemin')) {
152
150
  $handle.attr({
153
- 'aria-valuemin': settings.start,
154
- 'aria-valuemax': settings.end
151
+ 'aria-valuemin' : settings.start,
152
+ 'aria-valuemax' : settings.end
155
153
  });
156
154
  }
157
155
  $handle.attr('aria-valuenow', value);
158
156
 
159
157
  if (settings.display_selector != '') {
160
- $(settings.display_selector).each(function(){
158
+ $(settings.display_selector).each(function () {
161
159
  if (this.hasOwnProperty('value')) {
162
160
  $(this).val(value);
163
161
  } else {
@@ -168,44 +166,42 @@
168
166
 
169
167
  },
170
168
 
171
- normalized_percentage : function(val, start, end) {
172
- return Math.min(1, (val - start)/(end - start));
169
+ normalized_percentage : function (val, start, end) {
170
+ return Math.min(1, (val - start) / (end - start));
173
171
  },
174
172
 
175
- normalized_value : function(val, start, end, step, precision) {
173
+ normalized_value : function (val, start, end, step, precision) {
176
174
  var range = end - start,
177
- point = val*range,
178
- mod = (point-(point%step)) / step,
175
+ point = val * range,
176
+ mod = (point - (point % step)) / step,
179
177
  rem = point % step,
180
- round = ( rem >= step*0.5 ? step : 0);
181
- return ((mod*step + round) + start).toFixed(precision);
178
+ round = ( rem >= step * 0.5 ? step : 0);
179
+ return ((mod * step + round) + start).toFixed(precision);
182
180
  },
183
181
 
184
- set_translate : function(ele, offset, vertical) {
182
+ set_translate : function (ele, offset, vertical) {
185
183
  if (vertical) {
186
184
  $(ele)
187
- .css('-webkit-transform', 'translateY('+offset+'px)')
188
- .css('-moz-transform', 'translateY('+offset+'px)')
189
- .css('-ms-transform', 'translateY('+offset+'px)')
190
- .css('-o-transform', 'translateY('+offset+'px)')
191
- .css('transform', 'translateY('+offset+'px)');
185
+ .css('-webkit-transform', 'translateY(' + offset + 'px)')
186
+ .css('-moz-transform', 'translateY(' + offset + 'px)')
187
+ .css('-ms-transform', 'translateY(' + offset + 'px)')
188
+ .css('-o-transform', 'translateY(' + offset + 'px)')
189
+ .css('transform', 'translateY(' + offset + 'px)');
192
190
  } else {
193
191
  $(ele)
194
- .css('-webkit-transform', 'translateX('+offset+'px)')
195
- .css('-moz-transform', 'translateX('+offset+'px)')
196
- .css('-ms-transform', 'translateX('+offset+'px)')
197
- .css('-o-transform', 'translateX('+offset+'px)')
198
- .css('transform', 'translateX('+offset+'px)');
192
+ .css('-webkit-transform', 'translateX(' + offset + 'px)')
193
+ .css('-moz-transform', 'translateX(' + offset + 'px)')
194
+ .css('-ms-transform', 'translateX(' + offset + 'px)')
195
+ .css('-o-transform', 'translateX(' + offset + 'px)')
196
+ .css('transform', 'translateX(' + offset + 'px)');
199
197
  }
200
198
  },
201
199
 
202
- limit_to : function(val, min, max) {
200
+ limit_to : function (val, min, max) {
203
201
  return Math.min(Math.max(val, min), max);
204
202
  },
205
203
 
206
-
207
-
208
- initialize_settings : function(handle) {
204
+ initialize_settings : function (handle) {
209
205
  var settings = $.extend({}, this.settings, this.data_options($(handle).parent())),
210
206
  decimal_places_match_result;
211
207
 
@@ -230,16 +226,16 @@
230
226
  $.data(handle, 'settings', settings);
231
227
  },
232
228
 
233
- set_initial_position : function($ele) {
229
+ set_initial_position : function ($ele) {
234
230
  var settings = $.data($ele.children('.range-slider-handle')[0], 'settings'),
235
- initial = ((typeof settings.initial == 'number' && !isNaN(settings.initial)) ? settings.initial : Math.floor((settings.end-settings.start)*0.5/settings.step)*settings.step+settings.start),
231
+ initial = ((typeof settings.initial == 'number' && !isNaN(settings.initial)) ? settings.initial : Math.floor((settings.end - settings.start) * 0.5 / settings.step) * settings.step + settings.start),
236
232
  $handle = $ele.children('.range-slider-handle');
237
233
  this.set_ui($handle, initial);
238
234
  },
239
235
 
240
- set_value : function(value) {
236
+ set_value : function (value) {
241
237
  var self = this;
242
- $('[' + self.attr_name() + ']', this.scope).each(function(){
238
+ $('[' + self.attr_name() + ']', this.scope).each(function () {
243
239
  $(this).attr(self.attr_name(), value);
244
240
  });
245
241
  if (!!$(this.scope).attr(self.attr_name())) {
@@ -248,9 +244,9 @@
248
244
  self.reflow();
249
245
  },
250
246
 
251
- reflow : function() {
247
+ reflow : function () {
252
248
  var self = this;
253
- self.S('[' + this.attr_name() + ']').each(function() {
249
+ self.S('[' + this.attr_name() + ']').each(function () {
254
250
  var handle = $(this).children('.range-slider-handle')[0],
255
251
  val = $(this).attr(self.attr_name());
256
252
  self.initialize_settings(handle);