fomantic-ui-sass 2.8.8 → 2.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/app/assets/fonts/semantic-ui/brand-icons.eot +0 -0
  4. data/app/assets/fonts/semantic-ui/brand-icons.svg +41 -6
  5. data/app/assets/fonts/semantic-ui/brand-icons.ttf +0 -0
  6. data/app/assets/fonts/semantic-ui/brand-icons.woff +0 -0
  7. data/app/assets/fonts/semantic-ui/brand-icons.woff2 +0 -0
  8. data/app/assets/fonts/semantic-ui/icons.eot +0 -0
  9. data/app/assets/fonts/semantic-ui/icons.svg +245 -7
  10. data/app/assets/fonts/semantic-ui/icons.ttf +0 -0
  11. data/app/assets/fonts/semantic-ui/icons.woff +0 -0
  12. data/app/assets/fonts/semantic-ui/icons.woff2 +0 -0
  13. data/app/assets/fonts/semantic-ui/outline-icons.eot +0 -0
  14. data/app/assets/fonts/semantic-ui/outline-icons.svg +2 -2
  15. data/app/assets/fonts/semantic-ui/outline-icons.ttf +0 -0
  16. data/app/assets/fonts/semantic-ui/outline-icons.woff +0 -0
  17. data/app/assets/fonts/semantic-ui/outline-icons.woff2 +0 -0
  18. data/app/assets/javascripts/semantic-ui/accordion.js +9 -3
  19. data/app/assets/javascripts/semantic-ui/api.js +92 -33
  20. data/app/assets/javascripts/semantic-ui/calendar.js +200 -82
  21. data/app/assets/javascripts/semantic-ui/checkbox.js +20 -13
  22. data/app/assets/javascripts/semantic-ui/dimmer.js +24 -9
  23. data/app/assets/javascripts/semantic-ui/dropdown.js +250 -205
  24. data/app/assets/javascripts/semantic-ui/embed.js +13 -9
  25. data/app/assets/javascripts/semantic-ui/flyout.js +1530 -0
  26. data/app/assets/javascripts/semantic-ui/form.js +47 -41
  27. data/app/assets/javascripts/semantic-ui/modal.js +187 -83
  28. data/app/assets/javascripts/semantic-ui/nag.js +2 -2
  29. data/app/assets/javascripts/semantic-ui/popup.js +16 -22
  30. data/app/assets/javascripts/semantic-ui/progress.js +7 -4
  31. data/app/assets/javascripts/semantic-ui/rating.js +7 -3
  32. data/app/assets/javascripts/semantic-ui/search.js +47 -20
  33. data/app/assets/javascripts/semantic-ui/shape.js +3 -3
  34. data/app/assets/javascripts/semantic-ui/sidebar.js +140 -43
  35. data/app/assets/javascripts/semantic-ui/site.js +1 -1
  36. data/app/assets/javascripts/semantic-ui/slider.js +78 -63
  37. data/app/assets/javascripts/semantic-ui/state.js +2 -2
  38. data/app/assets/javascripts/semantic-ui/sticky.js +30 -19
  39. data/app/assets/javascripts/semantic-ui/tab.js +24 -6
  40. data/app/assets/javascripts/semantic-ui/toast.js +67 -33
  41. data/app/assets/javascripts/semantic-ui/transition.js +27 -22
  42. data/app/assets/javascripts/semantic-ui/visibility.js +5 -5
  43. data/app/assets/stylesheets/semantic-ui/collections/_breadcrumb.scss +1 -1
  44. data/app/assets/stylesheets/semantic-ui/collections/_form.scss +160 -83
  45. data/app/assets/stylesheets/semantic-ui/collections/_grid.scss +25 -21
  46. data/app/assets/stylesheets/semantic-ui/collections/_menu.scss +110 -78
  47. data/app/assets/stylesheets/semantic-ui/collections/_message.scss +43 -43
  48. data/app/assets/stylesheets/semantic-ui/collections/_table.scss +1684 -272
  49. data/app/assets/stylesheets/semantic-ui/elements/_button.scss +204 -157
  50. data/app/assets/stylesheets/semantic-ui/elements/_container.scss +98 -4
  51. data/app/assets/stylesheets/semantic-ui/elements/_divider.scss +31 -31
  52. data/app/assets/stylesheets/semantic-ui/elements/_emoji.scss +10799 -8841
  53. data/app/assets/stylesheets/semantic-ui/elements/_flag.scss +1021 -915
  54. data/app/assets/stylesheets/semantic-ui/elements/_header.scss +6 -4
  55. data/app/assets/stylesheets/semantic-ui/elements/_icon.scss +2110 -2061
  56. data/app/assets/stylesheets/semantic-ui/elements/_image.scss +1 -1
  57. data/app/assets/stylesheets/semantic-ui/elements/_input.scss +759 -22
  58. data/app/assets/stylesheets/semantic-ui/elements/_label.scss +72 -68
  59. data/app/assets/stylesheets/semantic-ui/elements/_list.scss +31 -31
  60. data/app/assets/stylesheets/semantic-ui/elements/_loader.scss +352 -352
  61. data/app/assets/stylesheets/semantic-ui/elements/_placeholder.scss +33 -33
  62. data/app/assets/stylesheets/semantic-ui/elements/_rail.scss +1 -1
  63. data/app/assets/stylesheets/semantic-ui/elements/_reveal.scss +1 -1
  64. data/app/assets/stylesheets/semantic-ui/elements/_segment.scss +118 -34
  65. data/app/assets/stylesheets/semantic-ui/elements/_step.scss +32 -32
  66. data/app/assets/stylesheets/semantic-ui/elements/_text.scss +1 -1
  67. data/app/assets/stylesheets/semantic-ui/globals/_reset.scss +5 -4
  68. data/app/assets/stylesheets/semantic-ui/globals/_site.scss +139 -42
  69. data/app/assets/stylesheets/semantic-ui/modules/_accordion.scss +177 -37
  70. data/app/assets/stylesheets/semantic-ui/modules/_calendar.scss +18 -1
  71. data/app/assets/stylesheets/semantic-ui/modules/_checkbox.scss +93 -92
  72. data/app/assets/stylesheets/semantic-ui/modules/_dimmer.scss +33 -18
  73. data/app/assets/stylesheets/semantic-ui/modules/_dropdown.scss +101 -51
  74. data/app/assets/stylesheets/semantic-ui/modules/_embed.scss +5 -5
  75. data/app/assets/stylesheets/semantic-ui/modules/_flyout.scss +592 -0
  76. data/app/assets/stylesheets/semantic-ui/modules/_modal.scss +37 -6
  77. data/app/assets/stylesheets/semantic-ui/modules/_nag.scss +1 -1
  78. data/app/assets/stylesheets/semantic-ui/modules/_popup.scss +103 -105
  79. data/app/assets/stylesheets/semantic-ui/modules/_progress.scss +1 -1
  80. data/app/assets/stylesheets/semantic-ui/modules/_rating.scss +7 -46
  81. data/app/assets/stylesheets/semantic-ui/modules/_search.scss +6 -6
  82. data/app/assets/stylesheets/semantic-ui/modules/_shape.scss +1 -1
  83. data/app/assets/stylesheets/semantic-ui/modules/_sidebar.scss +23 -9
  84. data/app/assets/stylesheets/semantic-ui/modules/_slider.scss +17 -17
  85. data/app/assets/stylesheets/semantic-ui/modules/_sticky.scss +1 -1
  86. data/app/assets/stylesheets/semantic-ui/modules/_tab.scss +5 -5
  87. data/app/assets/stylesheets/semantic-ui/modules/_toast.scss +49 -1
  88. data/app/assets/stylesheets/semantic-ui/modules/_transition.scss +1 -1
  89. data/app/assets/stylesheets/semantic-ui/views/_ad.scss +4 -4
  90. data/app/assets/stylesheets/semantic-ui/views/_card.scss +754 -117
  91. data/app/assets/stylesheets/semantic-ui/views/_comment.scss +12 -12
  92. data/app/assets/stylesheets/semantic-ui/views/_feed.scss +29 -29
  93. data/app/assets/stylesheets/semantic-ui/views/_item.scss +17 -17
  94. data/app/assets/stylesheets/semantic-ui/views/_statistic.scss +4 -4
  95. data/fomantic-ui-sass.gemspec +1 -1
  96. data/lib/fomantic/ui/sass/version.rb +2 -2
  97. metadata +9 -7
@@ -53,7 +53,7 @@ $.fn.nag = function(parameters) {
53
53
  $module = $(this),
54
54
 
55
55
  $context = (settings.context)
56
- ? $(settings.context)
56
+ ? ([window,document].indexOf(settings.context) < 0 ? $(document).find(settings.context) : $(settings.context))
57
57
  : $('body'),
58
58
 
59
59
  element = this,
@@ -403,7 +403,7 @@ $.fn.nag = function(parameters) {
403
403
  response
404
404
  ;
405
405
  passedArguments = passedArguments || queryArguments;
406
- context = element || context;
406
+ context = context || element;
407
407
  if(typeof query == 'string' && object !== undefined) {
408
408
  query = query.split(/[\. ]/);
409
409
  maxDepth = query.length - 1;
@@ -62,11 +62,11 @@ $.fn.popup = function(parameters) {
62
62
  moduleNamespace = 'module-' + namespace,
63
63
 
64
64
  $module = $(this),
65
- $context = $(settings.context),
66
- $scrollContext = $(settings.scrollContext),
67
- $boundary = $(settings.boundary),
65
+ $context = [window,document].indexOf(settings.context) < 0 ? $document.find(settings.context) : $(settings.context),
66
+ $scrollContext = [window,document].indexOf(settings.scrollContext) < 0 ? $document.find(settings.scrollContext) : $(settings.scrollContext),
67
+ $boundary = [window,document].indexOf(settings.boundary) < 0 ? $document.find(settings.boundary) : $(settings.boundary),
68
68
  $target = (settings.target)
69
- ? $(settings.target)
69
+ ? ([window,document].indexOf(settings.target) < 0 ? $document.find(settings.target) : $(settings.target))
70
70
  : $module,
71
71
 
72
72
  $popup,
@@ -122,7 +122,7 @@ $.fn.popup = function(parameters) {
122
122
 
123
123
  refresh: function() {
124
124
  if(settings.popup) {
125
- $popup = $(settings.popup).eq(0);
125
+ $popup = $document.find(settings.popup).eq(0);
126
126
  }
127
127
  else {
128
128
  if(settings.inline) {
@@ -287,7 +287,7 @@ $.fn.popup = function(parameters) {
287
287
  settings.onCreate.call($popup, element);
288
288
  }
289
289
  else if(settings.popup) {
290
- $(settings.popup).data(metadata.activator, $module);
290
+ $document.find(settings.popup).data(metadata.activator, $module);
291
291
  module.verbose('Used popup specified in settings');
292
292
  module.refresh();
293
293
  if(settings.hoverable) {
@@ -309,7 +309,7 @@ $.fn.popup = function(parameters) {
309
309
  },
310
310
 
311
311
  createID: function() {
312
- id = (Math.random().toString(16) + '000000000').substr(2, 8);
312
+ id = (Math.random().toString(16) + '000000000').slice(2, 10);
313
313
  elementNamespace = '.' + id;
314
314
  module.verbose('Creating unique id for element', id);
315
315
  },
@@ -368,7 +368,7 @@ $.fn.popup = function(parameters) {
368
368
  },
369
369
 
370
370
  hideAll: function() {
371
- $(selector.popup)
371
+ $document.find(selector.popup)
372
372
  .filter('.' + className.popupVisible)
373
373
  .each(function() {
374
374
  $(this)
@@ -438,6 +438,7 @@ $.fn.popup = function(parameters) {
438
438
  queue : false,
439
439
  debug : settings.debug,
440
440
  verbose : settings.verbose,
441
+ silent : settings.silent,
441
442
  duration : settings.transition.showDuration || settings.duration,
442
443
  onComplete : function() {
443
444
  module.bind.close();
@@ -462,6 +463,7 @@ $.fn.popup = function(parameters) {
462
463
  duration : settings.transition.hideDuration || settings.duration,
463
464
  debug : settings.debug,
464
465
  verbose : settings.verbose,
466
+ silent : settings.silent,
465
467
  onComplete : function() {
466
468
  module.reset();
467
469
  callback.call($popup, element);
@@ -557,7 +559,7 @@ $.fn.popup = function(parameters) {
557
559
  };
558
560
 
559
561
  // if popup offset context is not same as target, then adjust calculations
560
- if($popupOffsetParent.get(0) !== $offsetParent.get(0)) {
562
+ if($popupOffsetParent[0] !== $offsetParent[0]) {
561
563
  var
562
564
  popupOffset = $popupOffsetParent.offset()
563
565
  ;
@@ -1085,10 +1087,7 @@ $.fn.popup = function(parameters) {
1085
1087
  is: {
1086
1088
  closable: function() {
1087
1089
  if(settings.closable == 'auto') {
1088
- if(settings.on == 'hover') {
1089
- return false;
1090
- }
1091
- return true;
1090
+ return settings.on != 'hover';
1092
1091
  }
1093
1092
  return settings.closable;
1094
1093
  },
@@ -1103,12 +1102,7 @@ $.fn.popup = function(parameters) {
1103
1102
  offstage.push(direction);
1104
1103
  }
1105
1104
  });
1106
- if(offstage.length > 0) {
1107
- return true;
1108
- }
1109
- else {
1110
- return false;
1111
- }
1105
+ return offstage.length > 0;
1112
1106
  },
1113
1107
  svg: function(element) {
1114
1108
  return module.supports.svg() && (element instanceof SVGGraphicsElement);
@@ -1135,7 +1129,7 @@ $.fn.popup = function(parameters) {
1135
1129
  return !module.is.visible();
1136
1130
  },
1137
1131
  rtl: function () {
1138
- return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl';
1132
+ return $module.attr('dir') === 'rtl' || $module.css('direction') === 'rtl' || $body.attr('dir') === 'rtl' || $body.css('direction') === 'rtl' || $context.attr('dir') === 'rtl' || $context.css('direction') === 'rtl';
1139
1133
  }
1140
1134
  },
1141
1135
 
@@ -1262,7 +1256,7 @@ $.fn.popup = function(parameters) {
1262
1256
  response
1263
1257
  ;
1264
1258
  passedArguments = passedArguments || queryArguments;
1265
- context = element || context;
1259
+ context = context || element;
1266
1260
  if(typeof query == 'string' && object !== undefined) {
1267
1261
  query = query.split(/[\. ]/);
1268
1262
  maxDepth = query.length - 1;
@@ -1511,7 +1505,7 @@ $.fn.popup.settings = {
1511
1505
  }
1512
1506
  ;
1513
1507
  if(shouldEscape.test(string)) {
1514
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
1508
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
1515
1509
  return string.replace(badChars, escapedChar);
1516
1510
  }
1517
1511
  return string;
@@ -93,7 +93,7 @@ $.fn.progress = function(parameters) {
93
93
  *
94
94
  * @param min A minimum value within multiple values
95
95
  * @param total A total amount of multiple values
96
- * @returns {number} A precison. Could be 1, 10, 100, ... 1e+10.
96
+ * @returns {number} A precision. Could be 1, 10, 100, ... 1e+10.
97
97
  */
98
98
  derivePrecision: function(min, total) {
99
99
  var precisionPower = 0
@@ -607,6 +607,9 @@ $.fn.progress = function(parameters) {
607
607
  }
608
608
  else {
609
609
  module.remove.active();
610
+ module.remove.warning();
611
+ module.remove.error();
612
+ module.remove.success();
610
613
  module.set.label(settings.text.active);
611
614
  }
612
615
  },
@@ -874,7 +877,7 @@ $.fn.progress = function(parameters) {
874
877
  response
875
878
  ;
876
879
  passedArguments = passedArguments || queryArguments;
877
- context = element || context;
880
+ context = context || element;
878
881
  if(typeof query == 'string' && object !== undefined) {
879
882
  query = query.split(/[\. ]/);
880
883
  maxDepth = query.length - 1;
@@ -991,11 +994,11 @@ $.fn.progress.settings = {
991
994
  nonNumeric : 'Progress value is non numeric',
992
995
  tooHigh : 'Value specified is above 100%',
993
996
  tooLow : 'Value specified is below 0%',
994
- sumExceedsTotal : 'Sum of multple values exceed total',
997
+ sumExceedsTotal : 'Sum of multiple values exceed total',
995
998
  },
996
999
 
997
1000
  regExp: {
998
- variable: /\{\$*[A-z0-9]+\}/g
1001
+ variable: /\{\$*[a-z0-9]+\}/gi
999
1002
  },
1000
1003
 
1001
1004
  metadata: {
@@ -419,7 +419,7 @@ $.fn.rating = function(parameters) {
419
419
  response
420
420
  ;
421
421
  passedArguments = passedArguments || queryArguments;
422
- context = element || context;
422
+ context = context || element;
423
423
  if(typeof query == 'string' && object !== undefined) {
424
424
  query = query.split(/[\. ]/);
425
425
  maxDepth = query.length - 1;
@@ -536,13 +536,17 @@ $.fn.rating.settings = {
536
536
  },
537
537
 
538
538
  templates: {
539
+ deQuote: function(string, encode) {
540
+ return String(string).replace(/"/g,encode ? "&quot;" : "");
541
+ },
539
542
  icon: function(maxRating, iconClass) {
540
543
  var
541
544
  icon = 1,
542
- html = ''
545
+ html = '',
546
+ deQuote = $.fn.rating.settings.templates.deQuote
543
547
  ;
544
548
  while(icon <= maxRating) {
545
- html += '<i class="'+iconClass+' icon"></i>';
549
+ html += '<i class="'+deQuote(iconClass)+' icon"></i>';
546
550
  icon++;
547
551
  }
548
552
  return html;
@@ -262,7 +262,7 @@ $.fn.search = function(parameters) {
262
262
 
263
263
  resultsScrollTop = $results.scrollTop();
264
264
  resultsHeight = $results.height();
265
-
265
+
266
266
  if (elTop < 0) {
267
267
  $results.scrollTop(resultsScrollTop + elTop);
268
268
  }
@@ -293,8 +293,13 @@ $.fn.search = function(parameters) {
293
293
  ;
294
294
  // search shortcuts
295
295
  if(keyCode == keys.escape) {
296
- module.verbose('Escape key pressed, blurring search field');
297
- module.hideResults();
296
+ if(!module.is.visible()) {
297
+ module.verbose('Escape key pressed, blurring search field');
298
+ $prompt.blur();
299
+ } else {
300
+ module.hideResults();
301
+ }
302
+ event.stopPropagation();
298
303
  resultsDismissed = true;
299
304
  }
300
305
  if( module.is.visible() ) {
@@ -367,20 +372,36 @@ $.fn.search = function(parameters) {
367
372
  urlData : {
368
373
  query : searchTerm
369
374
  },
370
- onSuccess : function(response) {
375
+ },
376
+ apiCallbacks = {
377
+ onSuccess : function(response, $module, xhr) {
371
378
  module.parse.response.call(element, response, searchTerm);
372
379
  callback();
380
+ if(settings.apiSettings && typeof settings.apiSettings.onSuccess === 'function') {
381
+ settings.apiSettings.onSuccess.call(this, response, $module, xhr);
382
+ }
373
383
  },
374
- onFailure : function() {
384
+ onFailure : function(response, $module, xhr) {
375
385
  module.displayMessage(error.serverError);
376
386
  callback();
387
+ if(settings.apiSettings && typeof settings.apiSettings.onFailure === 'function') {
388
+ settings.apiSettings.onFailure.call(this, response, $module, xhr);
389
+ }
377
390
  },
378
- onAbort : function(response) {
391
+ onAbort : function(status, $module, xhr) {
392
+ if(settings.apiSettings && typeof settings.apiSettings.onAbort === 'function') {
393
+ settings.apiSettings.onAbort.call(this, status, $module, xhr);
394
+ }
379
395
  },
380
- onError : module.error
396
+ onError : function(errorMessage, $module, xhr){
397
+ module.error();
398
+ if(settings.apiSettings && typeof settings.apiSettings.onError === 'function') {
399
+ settings.apiSettings.onError.call(this, errorMessage, $module, xhr);
400
+ }
401
+ }
381
402
  }
382
403
  ;
383
- $.extend(true, apiSettings, settings.apiSettings);
404
+ $.extend(true, apiSettings, settings.apiSettings, apiCallbacks);
384
405
  module.verbose('Setting up API request', apiSettings);
385
406
  $module.api(apiSettings);
386
407
  }
@@ -403,7 +424,7 @@ $.fn.search = function(parameters) {
403
424
  return $results.hasClass(className.animating);
404
425
  },
405
426
  chrome: function() {
406
- return !!window.chrome && (!!window.chrome.webstore || !!window.chrome.runtime);
427
+ return !!window.chrome && !window.StyleMedia;
407
428
  },
408
429
  hidden: function() {
409
430
  return $results.hasClass(className.hidden);
@@ -455,10 +476,7 @@ $.fn.search = function(parameters) {
455
476
  return $prompt.val();
456
477
  },
457
478
  results: function() {
458
- var
459
- results = $module.data(metadata.results)
460
- ;
461
- return results;
479
+ return $module.data(metadata.results);
462
480
  },
463
481
  result: function(value, results) {
464
482
  var
@@ -514,8 +532,8 @@ $.fn.search = function(parameters) {
514
532
  },
515
533
  type: function(type) {
516
534
  type = type || settings.type;
517
- if(settings.type == 'category') {
518
- $module.addClass(settings.type);
535
+ if(className[type]) {
536
+ $module.addClass(className[type]);
519
537
  }
520
538
  },
521
539
  buttonPressed: function() {
@@ -662,10 +680,10 @@ $.fn.search = function(parameters) {
662
680
  ;
663
681
  if(fieldExists) {
664
682
  var text;
665
- if (typeof content[field] === 'string'){
683
+ if (typeof content[field] === 'string'){
666
684
  text = module.remove.diacritics(content[field]);
667
685
  } else {
668
- text = content[field].toString();
686
+ text = content[field].toString();
669
687
  }
670
688
  if( text.search(matchRegExp) !== -1) {
671
689
  // content starts with value (first in results)
@@ -675,7 +693,7 @@ $.fn.search = function(parameters) {
675
693
  // content fuzzy matches (last in results)
676
694
  addResult(exactResults, content);
677
695
  }
678
- else if(settings.fullTextSearch == true && module.fuzzySearch(searchTerm, text) ) {
696
+ else if(settings.fullTextSearch === true && module.fuzzySearch(searchTerm, text) ) {
679
697
  // content fuzzy matches (last in results)
680
698
  addResult(fuzzyResults, content);
681
699
  }
@@ -977,6 +995,7 @@ $.fn.search = function(parameters) {
977
995
  animation : settings.transition + ' in',
978
996
  debug : settings.debug,
979
997
  verbose : settings.verbose,
998
+ silent : settings.silent,
980
999
  duration : settings.duration,
981
1000
  onShow : function() {
982
1001
  var $firstResult = $module.find(selector.result).eq(0);
@@ -1012,6 +1031,7 @@ $.fn.search = function(parameters) {
1012
1031
  animation : settings.transition + ' out',
1013
1032
  debug : settings.debug,
1014
1033
  verbose : settings.verbose,
1034
+ silent : settings.silent,
1015
1035
  duration : settings.duration,
1016
1036
  onComplete : function() {
1017
1037
  callback();
@@ -1183,7 +1203,7 @@ $.fn.search = function(parameters) {
1183
1203
  response
1184
1204
  ;
1185
1205
  passedArguments = passedArguments || queryArguments;
1186
- context = element || context;
1206
+ context = context || element;
1187
1207
  if(typeof query == 'string' && object !== undefined) {
1188
1208
  query = query.split(/[\. ]/);
1189
1209
  maxDepth = query.length - 1;
@@ -1334,6 +1354,7 @@ $.fn.search.settings = {
1334
1354
  className: {
1335
1355
  animating : 'animating',
1336
1356
  active : 'active',
1357
+ category : 'category',
1337
1358
  empty : 'empty',
1338
1359
  focus : 'focus',
1339
1360
  hidden : 'hidden',
@@ -1413,7 +1434,7 @@ $.fn.search.settings = {
1413
1434
  }
1414
1435
  ;
1415
1436
  if(shouldEscape.test(string)) {
1416
- string = string.replace(/&(?![a-z0-9#]{1,6};)/, "&amp;");
1437
+ string = string.replace(/&(?![a-z0-9#]{1,12};)/gi, "&amp;");
1417
1438
  return string.replace(badChars, escapedChar);
1418
1439
  }
1419
1440
  return string;
@@ -1564,4 +1585,10 @@ $.fn.search.settings = {
1564
1585
  }
1565
1586
  };
1566
1587
 
1588
+ $.extend($.easing, {
1589
+ easeOutExpo: function(x) {
1590
+ return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
1591
+ }
1592
+ });
1593
+
1567
1594
  })( jQuery, window, document );
@@ -126,7 +126,7 @@ $.fn.shape = function(parameters) {
126
126
  module.reset();
127
127
  module.set.active();
128
128
  };
129
- settings.beforeChange.call($nextSide[0]);
129
+ settings.onBeforeChange.call($nextSide[0]);
130
130
  if(module.get.transitionEvent()) {
131
131
  module.verbose('Starting CSS animation');
132
132
  $module
@@ -707,7 +707,7 @@ $.fn.shape = function(parameters) {
707
707
  response
708
708
  ;
709
709
  passedArguments = passedArguments || queryArguments;
710
- context = element || context;
710
+ context = context || element;
711
711
  if(typeof query == 'string' && object !== undefined) {
712
712
  query = query.split(/[\. ]/);
713
713
  maxDepth = query.length - 1;
@@ -813,7 +813,7 @@ $.fn.shape.settings = {
813
813
  height: 'initial',
814
814
 
815
815
  // callback occurs on side change
816
- beforeChange : function() {},
816
+ onBeforeChange : function() {},
817
817
  onChange : function() {},
818
818
 
819
819
  // allow animation to same side