fomantic-ui 2.9.1-beta.23 → 2.9.1-beta.25
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.
- package/.eslint/eqeqeq-rule.js +18 -0
- package/.eslint/index.js +26 -0
- package/.eslint/no-extra-parens-rule.js +17 -0
- package/.eslint/package.json +11 -0
- package/.eslintrc.js +7 -13
- package/dist/components/accordion.css +1 -1
- package/dist/components/accordion.js +24 -24
- package/dist/components/accordion.min.css +1 -1
- package/dist/components/accordion.min.js +2 -2
- package/dist/components/ad.css +1 -1
- package/dist/components/ad.min.css +1 -1
- package/dist/components/api.js +58 -58
- package/dist/components/api.min.js +2 -2
- package/dist/components/breadcrumb.css +1 -1
- package/dist/components/breadcrumb.min.css +1 -1
- package/dist/components/button.css +1 -1
- package/dist/components/button.min.css +1 -1
- package/dist/components/calendar.css +1 -1
- package/dist/components/calendar.js +84 -72
- package/dist/components/calendar.min.css +1 -1
- package/dist/components/calendar.min.js +2 -2
- package/dist/components/card.css +1 -1
- package/dist/components/card.min.css +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/checkbox.js +17 -17
- package/dist/components/checkbox.min.css +1 -1
- package/dist/components/checkbox.min.js +2 -2
- package/dist/components/comment.css +1 -1
- package/dist/components/comment.min.css +1 -1
- package/dist/components/container.css +1 -1
- package/dist/components/container.min.css +1 -1
- package/dist/components/dimmer.css +1 -1
- package/dist/components/dimmer.js +18 -18
- package/dist/components/dimmer.min.css +1 -1
- package/dist/components/dimmer.min.js +2 -2
- package/dist/components/divider.css +1 -1
- package/dist/components/divider.min.css +1 -1
- package/dist/components/dropdown.css +1 -1
- package/dist/components/dropdown.js +264 -254
- package/dist/components/dropdown.min.css +1 -1
- package/dist/components/dropdown.min.js +2 -2
- package/dist/components/embed.css +1 -1
- package/dist/components/embed.js +19 -19
- package/dist/components/embed.min.css +1 -1
- package/dist/components/embed.min.js +2 -2
- package/dist/components/feed.css +1 -1
- package/dist/components/feed.min.css +1 -1
- package/dist/components/flag.css +1 -1
- package/dist/components/flag.min.css +1 -1
- package/dist/components/flyout.css +1 -1
- package/dist/components/flyout.js +29 -25
- package/dist/components/flyout.min.css +1 -1
- package/dist/components/flyout.min.js +2 -2
- package/dist/components/form.css +1 -1
- package/dist/components/form.js +158 -141
- package/dist/components/form.min.css +1 -1
- package/dist/components/form.min.js +2 -2
- package/dist/components/grid.css +1 -1
- package/dist/components/grid.min.css +1 -1
- package/dist/components/header.css +1 -1
- package/dist/components/header.min.css +1 -1
- package/dist/components/icon.css +1 -1
- package/dist/components/icon.min.css +1 -1
- package/dist/components/image.css +1 -1
- package/dist/components/image.min.css +1 -1
- package/dist/components/input.css +1 -1
- package/dist/components/input.min.css +1 -1
- package/dist/components/item.css +1 -1
- package/dist/components/item.min.css +1 -1
- package/dist/components/label.css +1 -1
- package/dist/components/label.min.css +1 -1
- package/dist/components/list.css +1 -1
- package/dist/components/list.min.css +1 -1
- package/dist/components/loader.css +1 -1
- package/dist/components/loader.min.css +1 -1
- package/dist/components/message.css +1 -1
- package/dist/components/message.min.css +1 -1
- package/dist/components/modal.css +1 -1
- package/dist/components/modal.js +32 -28
- package/dist/components/modal.min.css +1 -1
- package/dist/components/modal.min.js +2 -2
- package/dist/components/nag.css +1 -1
- package/dist/components/nag.js +10 -10
- package/dist/components/nag.min.css +1 -1
- package/dist/components/nag.min.js +2 -2
- package/dist/components/placeholder.css +1 -1
- package/dist/components/placeholder.min.css +1 -1
- package/dist/components/popup.css +1 -1
- package/dist/components/popup.js +79 -71
- package/dist/components/popup.min.css +1 -1
- package/dist/components/popup.min.js +2 -2
- package/dist/components/progress.css +1 -1
- package/dist/components/progress.js +40 -42
- package/dist/components/progress.min.css +1 -1
- package/dist/components/progress.min.js +2 -2
- package/dist/components/rail.css +1 -1
- package/dist/components/rail.min.css +1 -1
- package/dist/components/rating.css +1 -1
- package/dist/components/rating.js +13 -13
- package/dist/components/rating.min.css +1 -1
- package/dist/components/rating.min.js +2 -2
- package/dist/components/reset.css +1 -1
- package/dist/components/reset.min.css +1 -1
- package/dist/components/reveal.css +1 -1
- package/dist/components/reveal.min.css +1 -1
- package/dist/components/search.css +1 -1
- package/dist/components/search.js +42 -42
- package/dist/components/search.min.css +1 -1
- package/dist/components/search.min.js +2 -2
- package/dist/components/segment.css +1 -1
- package/dist/components/segment.min.css +1 -1
- package/dist/components/shape.css +1 -1
- package/dist/components/shape.js +36 -36
- package/dist/components/shape.min.css +1 -1
- package/dist/components/shape.min.js +2 -2
- package/dist/components/sidebar.css +1 -1
- package/dist/components/sidebar.js +29 -29
- package/dist/components/sidebar.min.css +1 -1
- package/dist/components/sidebar.min.js +2 -2
- package/dist/components/site.css +1 -1
- package/dist/components/site.js +16 -16
- package/dist/components/site.min.css +1 -1
- package/dist/components/site.min.js +2 -2
- package/dist/components/slider.js +79 -58
- package/dist/components/slider.min.js +2 -2
- package/dist/components/state.js +14 -14
- package/dist/components/state.min.js +2 -2
- package/dist/components/statistic.css +1 -1
- package/dist/components/statistic.min.css +1 -1
- package/dist/components/step.css +1 -1
- package/dist/components/step.min.css +1 -1
- package/dist/components/sticky.css +1 -1
- package/dist/components/sticky.js +25 -25
- package/dist/components/sticky.min.css +1 -1
- package/dist/components/sticky.min.js +2 -2
- package/dist/components/tab.css +1 -1
- package/dist/components/tab.js +34 -34
- package/dist/components/tab.min.css +1 -1
- package/dist/components/tab.min.js +2 -2
- package/dist/components/table.css +1 -1
- package/dist/components/table.min.css +1 -1
- package/dist/components/text.css +1 -1
- package/dist/components/text.min.css +1 -1
- package/dist/components/toast.css +1 -1
- package/dist/components/toast.js +43 -19
- package/dist/components/toast.min.css +1 -1
- package/dist/components/toast.min.js +2 -2
- package/dist/components/transition.css +1 -1
- package/dist/components/transition.js +26 -26
- package/dist/components/transition.min.css +1 -1
- package/dist/components/transition.min.js +2 -2
- package/dist/components/visibility.js +29 -29
- package/dist/components/visibility.min.js +2 -2
- package/dist/semantic.css +50 -50
- package/dist/semantic.js +1218 -1120
- package/dist/semantic.min.css +1 -1
- package/dist/semantic.min.js +2 -2
- package/gulpfile.js +1 -1
- package/package.json +2 -1
- package/scripts/nightly-version.js +3 -1
- package/src/definitions/behaviors/api.js +57 -57
- package/src/definitions/behaviors/form.js +157 -140
- package/src/definitions/behaviors/state.js +13 -13
- package/src/definitions/behaviors/visibility.js +28 -28
- package/src/definitions/globals/site.js +15 -15
- package/src/definitions/modules/accordion.js +23 -23
- package/src/definitions/modules/calendar.js +83 -71
- package/src/definitions/modules/checkbox.js +16 -16
- package/src/definitions/modules/dimmer.js +17 -17
- package/src/definitions/modules/dropdown.js +263 -253
- package/src/definitions/modules/embed.js +18 -18
- package/src/definitions/modules/flyout.js +28 -24
- package/src/definitions/modules/modal.js +31 -27
- package/src/definitions/modules/nag.js +9 -9
- package/src/definitions/modules/popup.js +78 -70
- package/src/definitions/modules/progress.js +39 -41
- package/src/definitions/modules/rating.js +12 -12
- package/src/definitions/modules/search.js +41 -41
- package/src/definitions/modules/shape.js +35 -35
- package/src/definitions/modules/sidebar.js +28 -28
- package/src/definitions/modules/slider.js +78 -57
- package/src/definitions/modules/sticky.js +24 -24
- package/src/definitions/modules/tab.js +33 -33
- package/src/definitions/modules/toast.js +42 -18
- package/src/definitions/modules/transition.js +25 -25
- package/tasks/admin/components/create.js +1 -1
- package/tasks/admin/components/init.js +2 -2
- package/tasks/admin/components/update.js +4 -4
- package/tasks/admin/distributions/create.js +6 -7
- package/tasks/admin/distributions/init.js +2 -2
- package/tasks/admin/distributions/update.js +4 -4
- package/tasks/admin/publish.js +1 -3
- package/tasks/admin/register.js +5 -5
- package/tasks/admin/release.js +1 -3
- package/tasks/build/assets.js +1 -1
- package/tasks/build.js +1 -1
- package/tasks/check-install.js +1 -1
- package/tasks/clean.js +1 -1
- package/tasks/collections/admin.js +1 -1
- package/tasks/collections/rtl.js +1 -1
- package/tasks/config/admin/github.js +3 -4
- package/tasks/config/npm/gulpfile.js +1 -1
- package/tasks/config/project/config.js +10 -8
- package/tasks/config/project/install.js +14 -14
- package/tasks/config/project/release.js +3 -2
- package/tasks/config/tasks.js +4 -4
- package/tasks/config/user.js +5 -3
- package/tasks/docs/build.js +1 -1
- package/tasks/docs/metadata.js +2 -2
- package/tasks/docs/serve.js +2 -1
- package/tasks/install.js +3 -3
- package/tasks/rtl/build.js +1 -3
- package/tasks/rtl/watch.js +1 -3
- package/tasks/version.js +1 -3
- package/tasks/watch.js +1 -1
- package/test/modules/module.spec.js +1 -1
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -27,7 +27,7 @@
|
|
27
27
|
performance = [],
|
28
28
|
|
29
29
|
query = arguments[0],
|
30
|
-
methodInvoked =
|
30
|
+
methodInvoked = typeof query === 'string',
|
31
31
|
queryArguments = [].slice.call(arguments, 1),
|
32
32
|
|
33
33
|
requestAnimationFrame = window.requestAnimationFrame
|
@@ -44,7 +44,7 @@
|
|
44
44
|
$allModules.each(function () {
|
45
45
|
var
|
46
46
|
moduleSelector = $allModules.selector || '',
|
47
|
-
settings =
|
47
|
+
settings = $.isPlainObject(parameters)
|
48
48
|
? $.extend(true, {}, $.fn.shape.settings, parameters)
|
49
49
|
: $.extend({}, $.fn.shape.settings),
|
50
50
|
|
@@ -185,7 +185,7 @@
|
|
185
185
|
|
186
186
|
is: {
|
187
187
|
complete: function () {
|
188
|
-
return
|
188
|
+
return $side.filter('.' + className.active)[0] === $nextSide[0];
|
189
189
|
},
|
190
190
|
animating: function () {
|
191
191
|
return $module.hasClass(className.animating);
|
@@ -199,7 +199,7 @@
|
|
199
199
|
|
200
200
|
defaultSide: function () {
|
201
201
|
$activeSide = $side.filter('.' + settings.className.active);
|
202
|
-
$nextSide =
|
202
|
+
$nextSide = $activeSide.next(selector.side).length > 0
|
203
203
|
? $activeSide.next(selector.side)
|
204
204
|
: $side.first();
|
205
205
|
nextIndex = false;
|
@@ -209,7 +209,7 @@
|
|
209
209
|
|
210
210
|
duration: function (duration) {
|
211
211
|
duration = duration || settings.duration;
|
212
|
-
duration =
|
212
|
+
duration = typeof duration === 'number'
|
213
213
|
? duration + 'ms'
|
214
214
|
: duration;
|
215
215
|
module.verbose('Setting animation duration', duration);
|
@@ -245,21 +245,21 @@
|
|
245
245
|
$clone = $module.clone().addClass(className.loading),
|
246
246
|
$side = $clone.find('>' + selector.sides + '>' + selector.side),
|
247
247
|
$activeSide = $side.filter('.' + settings.className.active),
|
248
|
-
$nextSide =
|
248
|
+
$nextSide = nextIndex
|
249
249
|
? $side.eq(nextIndex)
|
250
|
-
: ($activeSide.next(selector.side).length > 0
|
250
|
+
: ($activeSide.next(selector.side).length > 0
|
251
251
|
? $activeSide.next(selector.side)
|
252
|
-
: $side.first(),
|
253
|
-
newWidth =
|
252
|
+
: $side.first()),
|
253
|
+
newWidth = settings.width === 'next'
|
254
254
|
? $nextSide.outerWidth(true)
|
255
|
-
: (settings.width === 'initial'
|
255
|
+
: (settings.width === 'initial'
|
256
256
|
? $module.width()
|
257
|
-
: settings.width,
|
258
|
-
newHeight =
|
257
|
+
: settings.width),
|
258
|
+
newHeight = settings.height === 'next'
|
259
259
|
? $nextSide.outerHeight(true)
|
260
|
-
: (settings.height === 'initial'
|
260
|
+
: (settings.height === 'initial'
|
261
261
|
? $module.height()
|
262
|
-
: settings.height
|
262
|
+
: settings.height)
|
263
263
|
;
|
264
264
|
$activeSide.removeClass(className.active);
|
265
265
|
$nextSide.addClass(className.active);
|
@@ -443,7 +443,7 @@
|
|
443
443
|
},
|
444
444
|
|
445
445
|
nextSide: function () {
|
446
|
-
return
|
446
|
+
return $activeSide.next(selector.side).length > 0
|
447
447
|
? $activeSide.next(selector.side)
|
448
448
|
: $side.first();
|
449
449
|
},
|
@@ -455,10 +455,10 @@
|
|
455
455
|
above: function () {
|
456
456
|
var
|
457
457
|
box = {
|
458
|
-
origin: (
|
458
|
+
origin: ($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2,
|
459
459
|
depth: {
|
460
|
-
active:
|
461
|
-
next:
|
460
|
+
active: $nextSide.outerHeight(true) / 2,
|
461
|
+
next: $activeSide.outerHeight(true) / 2,
|
462
462
|
},
|
463
463
|
}
|
464
464
|
;
|
@@ -480,10 +480,10 @@
|
|
480
480
|
below: function () {
|
481
481
|
var
|
482
482
|
box = {
|
483
|
-
origin: (
|
483
|
+
origin: ($activeSide.outerHeight(true) - $nextSide.outerHeight(true)) / 2,
|
484
484
|
depth: {
|
485
|
-
active:
|
486
|
-
next:
|
485
|
+
active: $nextSide.outerHeight(true) / 2,
|
486
|
+
next: $activeSide.outerHeight(true) / 2,
|
487
487
|
},
|
488
488
|
}
|
489
489
|
;
|
@@ -509,10 +509,10 @@
|
|
509
509
|
next: $nextSide.outerWidth(true),
|
510
510
|
},
|
511
511
|
box = {
|
512
|
-
origin: (
|
512
|
+
origin: (height.active - height.next) / 2,
|
513
513
|
depth: {
|
514
|
-
active:
|
515
|
-
next:
|
514
|
+
active: height.next / 2,
|
515
|
+
next: height.active / 2,
|
516
516
|
},
|
517
517
|
}
|
518
518
|
;
|
@@ -538,10 +538,10 @@
|
|
538
538
|
next: $nextSide.outerWidth(true),
|
539
539
|
},
|
540
540
|
box = {
|
541
|
-
origin: (
|
541
|
+
origin: (height.active - height.next) / 2,
|
542
542
|
depth: {
|
543
|
-
active:
|
544
|
-
next:
|
543
|
+
active: height.next / 2,
|
544
|
+
next: height.active / 2,
|
545
545
|
},
|
546
546
|
}
|
547
547
|
;
|
@@ -567,10 +567,10 @@
|
|
567
567
|
next: $nextSide.outerWidth(true),
|
568
568
|
},
|
569
569
|
box = {
|
570
|
-
origin: (
|
570
|
+
origin: (height.active - height.next) / 2,
|
571
571
|
depth: {
|
572
|
-
active:
|
573
|
-
next:
|
572
|
+
active: height.next / 2,
|
573
|
+
next: height.active / 2,
|
574
574
|
},
|
575
575
|
}
|
576
576
|
;
|
@@ -704,17 +704,17 @@
|
|
704
704
|
query = query.split(/[ .]/);
|
705
705
|
maxDepth = query.length - 1;
|
706
706
|
$.each(query, function (depth, value) {
|
707
|
-
var camelCaseValue =
|
707
|
+
var camelCaseValue = depth !== maxDepth
|
708
708
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
709
709
|
: query
|
710
710
|
;
|
711
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
711
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
712
712
|
object = object[camelCaseValue];
|
713
713
|
} else if (object[camelCaseValue] !== undefined) {
|
714
714
|
found = object[camelCaseValue];
|
715
715
|
|
716
716
|
return false;
|
717
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
717
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
718
718
|
object = object[value];
|
719
719
|
} else if (object[value] !== undefined) {
|
720
720
|
found = object[value];
|
@@ -763,7 +763,7 @@
|
|
763
763
|
}
|
764
764
|
});
|
765
765
|
|
766
|
-
return
|
766
|
+
return returnedValue !== undefined
|
767
767
|
? returnedValue
|
768
768
|
: this;
|
769
769
|
};
|
@@ -15,7 +15,7 @@
|
|
15
15
|
return typeof obj === 'function' && typeof obj.nodeType !== 'number';
|
16
16
|
}
|
17
17
|
|
18
|
-
window =
|
18
|
+
window = window !== undefined && window.Math === Math
|
19
19
|
? window
|
20
20
|
: globalThis;
|
21
21
|
|
@@ -34,7 +34,7 @@
|
|
34
34
|
performance = [],
|
35
35
|
|
36
36
|
query = arguments[0],
|
37
|
-
methodInvoked =
|
37
|
+
methodInvoked = typeof query === 'string',
|
38
38
|
queryArguments = [].slice.call(arguments, 1),
|
39
39
|
|
40
40
|
requestAnimationFrame = window.requestAnimationFrame
|
@@ -49,7 +49,7 @@
|
|
49
49
|
|
50
50
|
$allModules.each(function () {
|
51
51
|
var
|
52
|
-
settings =
|
52
|
+
settings = $.isPlainObject(parameters)
|
53
53
|
? $.extend(true, {}, $.fn.sidebar.settings, parameters)
|
54
54
|
: $.extend({}, $.fn.sidebar.settings),
|
55
55
|
|
@@ -143,8 +143,8 @@
|
|
143
143
|
clickaway: function (event) {
|
144
144
|
if (settings.closable) {
|
145
145
|
var
|
146
|
-
clickedInPusher =
|
147
|
-
clickedContext =
|
146
|
+
clickedInPusher = $pusher.find(event.target).length > 0 || $pusher.is(event.target),
|
147
|
+
clickedContext = $context.is(event.target)
|
148
148
|
;
|
149
149
|
if (clickedInPusher) {
|
150
150
|
module.verbose('User clicked on dimmed page');
|
@@ -249,7 +249,7 @@
|
|
249
249
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
250
250
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
251
251
|
+ ' }';
|
252
|
-
} else if (direction === 'top' || direction
|
252
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
253
253
|
style += ''
|
254
254
|
+ ' .ui.visible.' + direction + '.sidebar ~ .fixed,'
|
255
255
|
+ ' .ui.visible.' + direction + '.sidebar ~ .pusher {'
|
@@ -268,7 +268,7 @@
|
|
268
268
|
+ ' -webkit-transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
269
269
|
+ ' transform: translate3d(' + distance[direction] + 'px, 0, 0);'
|
270
270
|
+ ' }';
|
271
|
-
} else if (direction === 'top' || direction
|
271
|
+
} else if (direction === 'top' || direction === 'bottom') {
|
272
272
|
style += ''
|
273
273
|
+ ' body.pushable > .ui.visible.' + direction + '.sidebar ~ .pusher::after {'
|
274
274
|
+ ' -webkit-transform: translate3d(0, ' + distance[direction] + 'px, 0);'
|
@@ -399,7 +399,7 @@
|
|
399
399
|
module.debug('Other sidebars currently visible');
|
400
400
|
if (settings.exclusive) {
|
401
401
|
// if not overlay queue animation after hide
|
402
|
-
if (settings.transition
|
402
|
+
if (settings.transition !== 'overlay') {
|
403
403
|
module.hideOthers(module.show);
|
404
404
|
|
405
405
|
return;
|
@@ -437,13 +437,13 @@
|
|
437
437
|
},
|
438
438
|
|
439
439
|
othersAnimating: function () {
|
440
|
-
return
|
440
|
+
return $sidebars.not($module).filter('.' + className.animating).length > 0;
|
441
441
|
},
|
442
442
|
othersVisible: function () {
|
443
|
-
return
|
443
|
+
return $sidebars.not($module).filter('.' + className.visible).length > 0;
|
444
444
|
},
|
445
445
|
othersActive: function () {
|
446
|
-
return
|
446
|
+
return module.othersVisible() || module.othersAnimating();
|
447
447
|
},
|
448
448
|
|
449
449
|
hideOthers: function (callback) {
|
@@ -456,7 +456,7 @@
|
|
456
456
|
$otherSidebars
|
457
457
|
.sidebar('hide', function () {
|
458
458
|
callbackCount++;
|
459
|
-
if (callbackCount
|
459
|
+
if (callbackCount === sidebarCount) {
|
460
460
|
callback();
|
461
461
|
}
|
462
462
|
})
|
@@ -475,7 +475,7 @@
|
|
475
475
|
pushPage: function (callback) {
|
476
476
|
var
|
477
477
|
transition = module.get.transition(),
|
478
|
-
$transition =
|
478
|
+
$transition = transition === 'overlay' || module.othersActive()
|
479
479
|
? $module
|
480
480
|
: $pusher,
|
481
481
|
animate,
|
@@ -504,7 +504,7 @@
|
|
504
504
|
module.set.dimmed();
|
505
505
|
};
|
506
506
|
transitionEnd = function (event) {
|
507
|
-
if (event.target
|
507
|
+
if (event.target === $transition[0]) {
|
508
508
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
509
509
|
module.remove.animating();
|
510
510
|
callback.call(element);
|
@@ -521,7 +521,7 @@
|
|
521
521
|
pullPage: function (callback) {
|
522
522
|
var
|
523
523
|
transition = module.get.transition(),
|
524
|
-
$transition =
|
524
|
+
$transition = transition === 'overlay' || module.othersActive()
|
525
525
|
? $module
|
526
526
|
: $pusher,
|
527
527
|
animate,
|
@@ -544,7 +544,7 @@
|
|
544
544
|
module.remove.visible();
|
545
545
|
};
|
546
546
|
transitionEnd = function (event) {
|
547
|
-
if (event.target
|
547
|
+
if (event.target === $transition[0]) {
|
548
548
|
$transition.off(transitionEvent + elementNamespace, transitionEnd);
|
549
549
|
module.remove.animating();
|
550
550
|
module.remove.closing();
|
@@ -724,13 +724,13 @@
|
|
724
724
|
direction = module.get.direction(),
|
725
725
|
transition
|
726
726
|
;
|
727
|
-
transition =
|
728
|
-
? (settings.mobileTransition
|
727
|
+
transition = module.is.mobile()
|
728
|
+
? (settings.mobileTransition === 'auto'
|
729
729
|
? settings.defaultTransition.mobile[direction]
|
730
|
-
: settings.mobileTransition
|
731
|
-
: (settings.transition
|
730
|
+
: settings.mobileTransition)
|
731
|
+
: (settings.transition === 'auto'
|
732
732
|
? settings.defaultTransition.computer[direction]
|
733
|
-
: settings.transition;
|
733
|
+
: settings.transition);
|
734
734
|
module.verbose('Determined transition', transition);
|
735
735
|
|
736
736
|
return transition;
|
@@ -786,10 +786,10 @@
|
|
786
786
|
ie: function () {
|
787
787
|
if (module.cache.isIE === undefined) {
|
788
788
|
var
|
789
|
-
isIE11 =
|
790
|
-
isIE =
|
789
|
+
isIE11 = !window.ActiveXObject && 'ActiveXObject' in window,
|
790
|
+
isIE = 'ActiveXObject' in window
|
791
791
|
;
|
792
|
-
module.cache.isIE =
|
792
|
+
module.cache.isIE = isIE11 || isIE;
|
793
793
|
}
|
794
794
|
|
795
795
|
return module.cache.isIE;
|
@@ -964,17 +964,17 @@
|
|
964
964
|
query = query.split(/[ .]/);
|
965
965
|
maxDepth = query.length - 1;
|
966
966
|
$.each(query, function (depth, value) {
|
967
|
-
var camelCaseValue =
|
967
|
+
var camelCaseValue = depth !== maxDepth
|
968
968
|
? value + query[depth + 1].charAt(0).toUpperCase() + query[depth + 1].slice(1)
|
969
969
|
: query
|
970
970
|
;
|
971
|
-
if ($.isPlainObject(object[camelCaseValue]) && (depth
|
971
|
+
if ($.isPlainObject(object[camelCaseValue]) && (depth !== maxDepth)) {
|
972
972
|
object = object[camelCaseValue];
|
973
973
|
} else if (object[camelCaseValue] !== undefined) {
|
974
974
|
found = object[camelCaseValue];
|
975
975
|
|
976
976
|
return false;
|
977
|
-
} else if ($.isPlainObject(object[value]) && (depth
|
977
|
+
} else if ($.isPlainObject(object[value]) && (depth !== maxDepth)) {
|
978
978
|
object = object[value];
|
979
979
|
} else if (object[value] !== undefined) {
|
980
980
|
found = object[value];
|
@@ -1017,7 +1017,7 @@
|
|
1017
1017
|
}
|
1018
1018
|
});
|
1019
1019
|
|
1020
|
-
return
|
1020
|
+
return returnedValue !== undefined
|
1021
1021
|
? returnedValue
|
1022
1022
|
: this;
|
1023
1023
|
};
|