diff --git a/bootstrap/js/bootstrap.js b/bootstrap/js/bootstrap.js index 4139b6fc..68bf8eee 100644 --- a/bootstrap/js/bootstrap.js +++ b/bootstrap/js/bootstrap.js @@ -10,7 +10,7 @@ if (typeof jQuery === 'undefined') { +function ($) { 'use strict'; - var version = $.fn.jquery.split(' ')[0].split('.') + var version = $.fn.jquery.split(' ')[0].split('.'); if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1)) { throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher') } @@ -32,14 +32,14 @@ if (typeof jQuery === 'undefined') { // ============================================================ function transitionEnd() { - var el = document.createElement('bootstrap') + var el = document.createElement('bootstrap'); var transEndEventNames = { WebkitTransition : 'webkitTransitionEnd', MozTransition : 'transitionend', OTransition : 'oTransitionEnd otransitionend', transition : 'transitionend' - } + }; for (var name in transEndEventNames) { if (el.style[name] !== undefined) { @@ -47,23 +47,23 @@ if (typeof jQuery === 'undefined') { } } - return false // explicit for ie8 ( ._.) + return false; // explicit for ie8 ( ._.) } // http://blog.alexmaccaw.com/css-transitions $.fn.emulateTransitionEnd = function (duration) { - var called = false - var $el = this - $(this).one('bsTransitionEnd', function () { called = true }) - var callback = function () { if (!called) $($el).trigger($.support.transition.end) } - setTimeout(callback, duration) + var called = false; + var $el = this; + $(this).one('bsTransitionEnd', function () { called = true }); + var callback = function () { if (!called) $($el).trigger($.support.transition.end) }; + setTimeout(callback, duration); return this - } + }; $(function () { - $.support.transition = transitionEnd() + $.support.transition = transitionEnd(); - if (!$.support.transition) return + if (!$.support.transition) return; $.event.special.bsTransitionEnd = { bindType: $.support.transition.end, @@ -91,37 +91,37 @@ if (typeof jQuery === 'undefined') { // ALERT CLASS DEFINITION // ====================== - var dismiss = '[data-dismiss="alert"]' + var dismiss = '[data-dismiss="alert"]'; var Alert = function (el) { $(el).on('click', dismiss, this.close) - } + }; - Alert.VERSION = '3.3.2' + Alert.VERSION = '3.3.2'; - Alert.TRANSITION_DURATION = 150 + Alert.TRANSITION_DURATION = 150; Alert.prototype.close = function (e) { - var $this = $(this) - var selector = $this.attr('data-target') + var $this = $(this); + var selector = $this.attr('data-target'); if (!selector) { - selector = $this.attr('href') - selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') // strip for ie7 + selector = $this.attr('href'); + selector = selector && selector.replace(/.*(?=#[^\s]*$)/, ''); // strip for ie7 } - var $parent = $(selector) + var $parent = $(selector); - if (e) e.preventDefault() + if (e) e.preventDefault(); if (!$parent.length) { $parent = $this.closest('.alert') } - $parent.trigger(e = $.Event('close.bs.alert')) + $parent.trigger(e = $.Event('close.bs.alert')); - if (e.isDefaultPrevented()) return + if (e.isDefaultPrevented()) return; - $parent.removeClass('in') + $parent.removeClass('in'); function removeElement() { // detach from parent, fire event then clean up data @@ -133,7 +133,7 @@ if (typeof jQuery === 'undefined') { .one('bsTransitionEnd', removeElement) .emulateTransitionEnd(Alert.TRANSITION_DURATION) : removeElement() - } + }; // ALERT PLUGIN DEFINITION @@ -141,27 +141,27 @@ if (typeof jQuery === 'undefined') { function Plugin(option) { return this.each(function () { - var $this = $(this) - var data = $this.data('bs.alert') + var $this = $(this); + var data = $this.data('bs.alert'); - if (!data) $this.data('bs.alert', (data = new Alert(this))) + if (!data) $this.data('bs.alert', (data = new Alert(this))); if (typeof option == 'string') data[option].call($this) }) } - var old = $.fn.alert + var old = $.fn.alert; - $.fn.alert = Plugin - $.fn.alert.Constructor = Alert + $.fn.alert = Plugin; + $.fn.alert.Constructor = Alert; // ALERT NO CONFLICT // ================= $.fn.alert.noConflict = function () { - $.fn.alert = old + $.fn.alert = old; return this - } + }; // ALERT DATA-API @@ -187,49 +187,49 @@ if (typeof jQuery === 'undefined') { // ============================== var Button = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, Button.DEFAULTS, options) + this.$element = $(element); + this.options = $.extend({}, Button.DEFAULTS, options); this.isLoading = false - } + }; - Button.VERSION = '3.3.2' + Button.VERSION = '3.3.2'; Button.DEFAULTS = { loadingText: 'loading...' - } + }; Button.prototype.setState = function (state) { - var d = 'disabled' - var $el = this.$element - var val = $el.is('input') ? 'val' : 'html' - var data = $el.data() + var d = 'disabled'; + var $el = this.$element; + var val = $el.is('input') ? 'val' : 'html'; + var data = $el.data(); - state = state + 'Text' + state = state + 'Text'; - if (data.resetText == null) $el.data('resetText', $el[val]()) + if (data.resetText == null) $el.data('resetText', $el[val]()); // push to event loop to allow forms to submit setTimeout($.proxy(function () { - $el[val](data[state] == null ? this.options[state] : data[state]) + $el[val](data[state] == null ? this.options[state] : data[state]); if (state == 'loadingText') { - this.isLoading = true + this.isLoading = true; $el.addClass(d).attr(d, d) } else if (this.isLoading) { - this.isLoading = false + this.isLoading = false; $el.removeClass(d).removeAttr(d) } }, this), 0) - } + }; Button.prototype.toggle = function () { - var changed = true - var $parent = this.$element.closest('[data-toggle="buttons"]') + var changed = true; + var $parent = this.$element.closest('[data-toggle="buttons"]'); if ($parent.length) { - var $input = this.$element.find('input') + var $input = this.$element.find('input'); if ($input.prop('type') == 'radio') { - if ($input.prop('checked') && this.$element.hasClass('active')) changed = false + if ($input.prop('checked') && this.$element.hasClass('active')) changed = false; else $parent.find('.active').removeClass('active') } if (changed) $input.prop('checked', !this.$element.hasClass('active')).trigger('change') @@ -238,7 +238,7 @@ if (typeof jQuery === 'undefined') { } if (changed) this.$element.toggleClass('active') - } + }; // BUTTON PLUGIN DEFINITION @@ -246,30 +246,30 @@ if (typeof jQuery === 'undefined') { function Plugin(option) { return this.each(function () { - var $this = $(this) - var data = $this.data('bs.button') - var options = typeof option == 'object' && option + var $this = $(this); + var data = $this.data('bs.button'); + var options = typeof option == 'object' && option; - if (!data) $this.data('bs.button', (data = new Button(this, options))) + if (!data) $this.data('bs.button', (data = new Button(this, options))); - if (option == 'toggle') data.toggle() + if (option == 'toggle') data.toggle(); else if (option) data.setState(option) }) } - var old = $.fn.button + var old = $.fn.button; - $.fn.button = Plugin - $.fn.button.Constructor = Button + $.fn.button = Plugin; + $.fn.button.Constructor = Button; // BUTTON NO CONFLICT // ================== $.fn.button.noConflict = function () { - $.fn.button = old + $.fn.button = old; return this - } + }; // BUTTON DATA-API @@ -277,9 +277,9 @@ if (typeof jQuery === 'undefined') { $(document) .on('click.bs.button.data-api', '[data-toggle^="button"]', function (e) { - var $btn = $(e.target) - if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') - Plugin.call($btn, 'toggle') + var $btn = $(e.target); + if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn'); + Plugin.call($btn, 'toggle'); e.preventDefault() }) .on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (e) { @@ -304,160 +304,160 @@ if (typeof jQuery === 'undefined') { // ========================= var Carousel = function (element, options) { - this.$element = $(element) - this.$indicators = this.$element.find('.carousel-indicators') - this.options = options + this.$element = $(element); + this.$indicators = this.$element.find('.carousel-indicators'); + this.options = options; this.paused = this.sliding = this.interval = this.$active = - this.$items = null + this.$items = null; - this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)) + this.options.keyboard && this.$element.on('keydown.bs.carousel', $.proxy(this.keydown, this)); this.options.pause == 'hover' && !('ontouchstart' in document.documentElement) && this.$element .on('mouseenter.bs.carousel', $.proxy(this.pause, this)) .on('mouseleave.bs.carousel', $.proxy(this.cycle, this)) - } + }; - Carousel.VERSION = '3.3.2' + Carousel.VERSION = '3.3.2'; - Carousel.TRANSITION_DURATION = 600 + Carousel.TRANSITION_DURATION = 600; Carousel.DEFAULTS = { interval: 5000, pause: 'hover', wrap: true, keyboard: true - } + }; Carousel.prototype.keydown = function (e) { - if (/input|textarea/i.test(e.target.tagName)) return + if (/input|textarea/i.test(e.target.tagName)) return; switch (e.which) { - case 37: this.prev(); break - case 39: this.next(); break + case 37: this.prev(); break; + case 39: this.next(); break; default: return } e.preventDefault() - } + }; Carousel.prototype.cycle = function (e) { - e || (this.paused = false) + e || (this.paused = false); - this.interval && clearInterval(this.interval) + this.interval && clearInterval(this.interval); this.options.interval && !this.paused - && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) + && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)); return this - } + }; Carousel.prototype.getItemIndex = function (item) { - this.$items = item.parent().children('.item') + this.$items = item.parent().children('.item'); return this.$items.index(item || this.$active) - } + }; Carousel.prototype.getItemForDirection = function (direction, active) { - var activeIndex = this.getItemIndex(active) + var activeIndex = this.getItemIndex(active); var willWrap = (direction == 'prev' && activeIndex === 0) - || (direction == 'next' && activeIndex == (this.$items.length - 1)) - if (willWrap && !this.options.wrap) return active - var delta = direction == 'prev' ? -1 : 1 - var itemIndex = (activeIndex + delta) % this.$items.length + || (direction == 'next' && activeIndex == (this.$items.length - 1)); + if (willWrap && !this.options.wrap) return active; + var delta = direction == 'prev' ? -1 : 1; + var itemIndex = (activeIndex + delta) % this.$items.length; return this.$items.eq(itemIndex) - } + }; Carousel.prototype.to = function (pos) { - var that = this - var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')) + var that = this; + var activeIndex = this.getItemIndex(this.$active = this.$element.find('.item.active')); - if (pos > (this.$items.length - 1) || pos < 0) return + if (pos > (this.$items.length - 1) || pos < 0) return; - if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }) // yes, "slid" - if (activeIndex == pos) return this.pause().cycle() + if (this.sliding) return this.$element.one('slid.bs.carousel', function () { that.to(pos) }); // yes, "slid" + if (activeIndex == pos) return this.pause().cycle(); return this.slide(pos > activeIndex ? 'next' : 'prev', this.$items.eq(pos)) - } + }; Carousel.prototype.pause = function (e) { - e || (this.paused = true) + e || (this.paused = true); if (this.$element.find('.next, .prev').length && $.support.transition) { - this.$element.trigger($.support.transition.end) + this.$element.trigger($.support.transition.end); this.cycle(true) } - this.interval = clearInterval(this.interval) + this.interval = clearInterval(this.interval); return this - } + }; Carousel.prototype.next = function () { - if (this.sliding) return + if (this.sliding) return; return this.slide('next') - } + }; Carousel.prototype.prev = function () { - if (this.sliding) return + if (this.sliding) return; return this.slide('prev') - } + }; Carousel.prototype.slide = function (type, next) { - var $active = this.$element.find('.item.active') - var $next = next || this.getItemForDirection(type, $active) - var isCycling = this.interval - var direction = type == 'next' ? 'left' : 'right' - var that = this + var $active = this.$element.find('.item.active'); + var $next = next || this.getItemForDirection(type, $active); + var isCycling = this.interval; + var direction = type == 'next' ? 'left' : 'right'; + var that = this; - if ($next.hasClass('active')) return (this.sliding = false) + if ($next.hasClass('active')) return (this.sliding = false); - var relatedTarget = $next[0] + var relatedTarget = $next[0]; var slideEvent = $.Event('slide.bs.carousel', { relatedTarget: relatedTarget, direction: direction - }) - this.$element.trigger(slideEvent) - if (slideEvent.isDefaultPrevented()) return + }); + this.$element.trigger(slideEvent); + if (slideEvent.isDefaultPrevented()) return; - this.sliding = true + this.sliding = true; - isCycling && this.pause() + isCycling && this.pause(); if (this.$indicators.length) { - this.$indicators.find('.active').removeClass('active') - var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]) + this.$indicators.find('.active').removeClass('active'); + var $nextIndicator = $(this.$indicators.children()[this.getItemIndex($next)]); $nextIndicator && $nextIndicator.addClass('active') } - var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }) // yes, "slid" + var slidEvent = $.Event('slid.bs.carousel', { relatedTarget: relatedTarget, direction: direction }); // yes, "slid" if ($.support.transition && this.$element.hasClass('slide')) { - $next.addClass(type) - $next[0].offsetWidth // force reflow - $active.addClass(direction) - $next.addClass(direction) + $next.addClass(type); + $next[0].offsetWidth; // force reflow + $active.addClass(direction); + $next.addClass(direction); $active .one('bsTransitionEnd', function () { - $next.removeClass([type, direction].join(' ')).addClass('active') - $active.removeClass(['active', direction].join(' ')) - that.sliding = false + $next.removeClass([type, direction].join(' ')).addClass('active'); + $active.removeClass(['active', direction].join(' ')); + that.sliding = false; setTimeout(function () { that.$element.trigger(slidEvent) }, 0) }) .emulateTransitionEnd(Carousel.TRANSITION_DURATION) } else { - $active.removeClass('active') - $next.addClass('active') - this.sliding = false + $active.removeClass('active'); + $next.addClass('active'); + this.sliding = false; this.$element.trigger(slidEvent) } - isCycling && this.cycle() + isCycling && this.cycle(); return this - } + }; // CAROUSEL PLUGIN DEFINITION @@ -465,61 +465,61 @@ if (typeof jQuery === 'undefined') { function Plugin(option) { return this.each(function () { - var $this = $(this) - var data = $this.data('bs.carousel') - var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option) - var action = typeof option == 'string' ? option : options.slide + var $this = $(this); + var data = $this.data('bs.carousel'); + var options = $.extend({}, Carousel.DEFAULTS, $this.data(), typeof option == 'object' && option); + var action = typeof option == 'string' ? option : options.slide; - if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))) - if (typeof option == 'number') data.to(option) - else if (action) data[action]() + if (!data) $this.data('bs.carousel', (data = new Carousel(this, options))); + if (typeof option == 'number') data.to(option); + else if (action) data[action](); else if (options.interval) data.pause().cycle() }) } - var old = $.fn.carousel + var old = $.fn.carousel; - $.fn.carousel = Plugin - $.fn.carousel.Constructor = Carousel + $.fn.carousel = Plugin; + $.fn.carousel.Constructor = Carousel; // CAROUSEL NO CONFLICT // ==================== $.fn.carousel.noConflict = function () { - $.fn.carousel = old + $.fn.carousel = old; return this - } + }; // CAROUSEL DATA-API // ================= var clickHandler = function (e) { - var href - var $this = $(this) - var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) // strip for ie7 - if (!$target.hasClass('carousel')) return - var options = $.extend({}, $target.data(), $this.data()) - var slideIndex = $this.attr('data-slide-to') - if (slideIndex) options.interval = false + var href; + var $this = $(this); + var $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')); // strip for ie7 + if (!$target.hasClass('carousel')) return; + var options = $.extend({}, $target.data(), $this.data()); + var slideIndex = $this.attr('data-slide-to'); + if (slideIndex) options.interval = false; - Plugin.call($target, options) + Plugin.call($target, options); if (slideIndex) { $target.data('bs.carousel').to(slideIndex) } e.preventDefault() - } + }; $(document) .on('click.bs.carousel.data-api', '[data-slide]', clickHandler) - .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler) + .on('click.bs.carousel.data-api', '[data-slide-to]', clickHandler); $(window).on('load', function () { $('[data-ride="carousel"]').each(function () { - var $carousel = $(this) + var $carousel = $(this); Plugin.call($carousel, $carousel.data()) }) }) @@ -542,10 +542,10 @@ if (typeof jQuery === 'undefined') { // ================================ var Collapse = function (element, options) { - this.$element = $(element) - this.options = $.extend({}, Collapse.DEFAULTS, options) - this.$trigger = $(this.options.trigger).filter('[href="#' + element.id + '"], [data-target="#' + element.id + '"]') - this.transitioning = null + this.$element = $(element); + this.options = $.extend({}, Collapse.DEFAULTS, options); + this.$trigger = $(this.options.trigger).filter('[href="#' + element.id + '"], [data-target="#' + element.id + '"]'); + this.transitioning = null; if (this.options.parent) { this.$parent = this.getParent() @@ -554,138 +554,138 @@ if (typeof jQuery === 'undefined') { } if (this.options.toggle) this.toggle() - } + }; - Collapse.VERSION = '3.3.2' + Collapse.VERSION = '3.3.2'; - Collapse.TRANSITION_DURATION = 350 + Collapse.TRANSITION_DURATION = 350; Collapse.DEFAULTS = { toggle: true, trigger: '[data-toggle="collapse"]' - } + }; Collapse.prototype.dimension = function () { - var hasWidth = this.$element.hasClass('width') + var hasWidth = this.$element.hasClass('width'); return hasWidth ? 'width' : 'height' - } + }; Collapse.prototype.show = function () { - if (this.transitioning || this.$element.hasClass('in')) return + if (this.transitioning || this.$element.hasClass('in')) return; - var activesData - var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing') + var activesData; + var actives = this.$parent && this.$parent.children('.panel').children('.in, .collapsing'); if (actives && actives.length) { - activesData = actives.data('bs.collapse') + activesData = actives.data('bs.collapse'); if (activesData && activesData.transitioning) return } - var startEvent = $.Event('show.bs.collapse') - this.$element.trigger(startEvent) - if (startEvent.isDefaultPrevented()) return + var startEvent = $.Event('show.bs.collapse'); + this.$element.trigger(startEvent); + if (startEvent.isDefaultPrevented()) return; if (actives && actives.length) { - Plugin.call(actives, 'hide') + Plugin.call(actives, 'hide'); activesData || actives.data('bs.collapse', null) } - var dimension = this.dimension() + var dimension = this.dimension(); this.$element .removeClass('collapse') .addClass('collapsing')[dimension](0) - .attr('aria-expanded', true) + .attr('aria-expanded', true); this.$trigger .removeClass('collapsed') - .attr('aria-expanded', true) + .attr('aria-expanded', true); - this.transitioning = 1 + this.transitioning = 1; var complete = function () { this.$element .removeClass('collapsing') - .addClass('collapse in')[dimension]('') - this.transitioning = 0 + .addClass('collapse in')[dimension](''); + this.transitioning = 0; this.$element .trigger('shown.bs.collapse') - } + }; - if (!$.support.transition) return complete.call(this) + if (!$.support.transition) return complete.call(this); - var scrollSize = $.camelCase(['scroll', dimension].join('-')) + var scrollSize = $.camelCase(['scroll', dimension].join('-')); this.$element .one('bsTransitionEnd', $.proxy(complete, this)) .emulateTransitionEnd(Collapse.TRANSITION_DURATION)[dimension](this.$element[0][scrollSize]) - } + }; Collapse.prototype.hide = function () { - if (this.transitioning || !this.$element.hasClass('in')) return + if (this.transitioning || !this.$element.hasClass('in')) return; - var startEvent = $.Event('hide.bs.collapse') - this.$element.trigger(startEvent) - if (startEvent.isDefaultPrevented()) return + var startEvent = $.Event('hide.bs.collapse'); + this.$element.trigger(startEvent); + if (startEvent.isDefaultPrevented()) return; - var dimension = this.dimension() + var dimension = this.dimension(); - this.$element[dimension](this.$element[dimension]())[0].offsetHeight + this.$element[dimension](this.$element[dimension]())[0].offsetHeight; this.$element .addClass('collapsing') .removeClass('collapse in') - .attr('aria-expanded', false) + .attr('aria-expanded', false); this.$trigger .addClass('collapsed') - .attr('aria-expanded', false) + .attr('aria-expanded', false); - this.transitioning = 1 + this.transitioning = 1; var complete = function () { - this.transitioning = 0 + this.transitioning = 0; this.$element .removeClass('collapsing') .addClass('collapse') .trigger('hidden.bs.collapse') - } + }; - if (!$.support.transition) return complete.call(this) + if (!$.support.transition) return complete.call(this); this.$element [dimension](0) .one('bsTransitionEnd', $.proxy(complete, this)) .emulateTransitionEnd(Collapse.TRANSITION_DURATION) - } + }; Collapse.prototype.toggle = function () { this[this.$element.hasClass('in') ? 'hide' : 'show']() - } + }; Collapse.prototype.getParent = function () { return $(this.options.parent) .find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]') .each($.proxy(function (i, element) { - var $element = $(element) + var $element = $(element); this.addAriaAndCollapsedClass(getTargetFromTrigger($element), $element) }, this)) .end() - } + }; Collapse.prototype.addAriaAndCollapsedClass = function ($element, $trigger) { - var isOpen = $element.hasClass('in') + var isOpen = $element.hasClass('in'); - $element.attr('aria-expanded', isOpen) + $element.attr('aria-expanded', isOpen); $trigger .toggleClass('collapsed', !isOpen) .attr('aria-expanded', isOpen) - } + }; function getTargetFromTrigger($trigger) { - var href + var href; var target = $trigger.attr('data-target') - || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') // strip for ie7 + || (href = $trigger.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, ''); // strip for ie7 return $(target) } @@ -696,42 +696,42 @@ if (typeof jQuery === 'undefined') { function Plugin(option) { return this.each(function () { - var $this = $(this) - var data = $this.data('bs.collapse') - var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option) + var $this = $(this); + var data = $this.data('bs.collapse'); + var options = $.extend({}, Collapse.DEFAULTS, $this.data(), typeof option == 'object' && option); - if (!data && options.toggle && option == 'show') options.toggle = false - if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))) + if (!data && options.toggle && option == 'show') options.toggle = false; + if (!data) $this.data('bs.collapse', (data = new Collapse(this, options))); if (typeof option == 'string') data[option]() }) } - var old = $.fn.collapse + var old = $.fn.collapse; - $.fn.collapse = Plugin - $.fn.collapse.Constructor = Collapse + $.fn.collapse = Plugin; + $.fn.collapse.Constructor = Collapse; // COLLAPSE NO CONFLICT // ==================== $.fn.collapse.noConflict = function () { - $.fn.collapse = old + $.fn.collapse = old; return this - } + }; // COLLAPSE DATA-API // ================= $(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function (e) { - var $this = $(this) + var $this = $(this); - if (!$this.attr('data-target')) e.preventDefault() + if (!$this.attr('data-target')) e.preventDefault(); - var $target = getTargetFromTrigger($this) - var data = $target.data('bs.collapse') - var option = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this }) + var $target = getTargetFromTrigger($this); + var data = $target.data('bs.collapse'); + var option = data ? 'toggle' : $.extend({}, $this.data(), { trigger: this }); Plugin.call($target, option) }) @@ -753,23 +753,23 @@ if (typeof jQuery === 'undefined') { // DROPDOWN CLASS DEFINITION // ========================= - var backdrop = '.dropdown-backdrop' - var toggle = '[data-toggle="dropdown"]' + var backdrop = '.dropdown-backdrop'; + var toggle = '[data-toggle="dropdown"]'; var Dropdown = function (element) { $(element).on('click.bs.dropdown', this.toggle) - } + }; - Dropdown.VERSION = '3.3.2' + Dropdown.VERSION = '3.3.2'; Dropdown.prototype.toggle = function (e) { - var $this = $(this) + var $this = $(this); - if ($this.is('.disabled, :disabled')) return + if ($this.is('.disabled, :disabled')) return; - var $parent = getParent($this) - var isActive = $parent.hasClass('open') + var $parent = getParent($this); + var isActive = $parent.hasClass('open'); - clearMenus() + clearMenus(); if (!isActive) { if ('ontouchstart' in document.documentElement && !$parent.closest('.navbar-nav').length) { @@ -777,14 +777,14 @@ if (typeof jQuery === 'undefined') { $(' @@ -1123,8 +1123,6 @@ - - diff --git a/pages/charts/chartjs.html b/pages/charts/chartjs.html index e8083c1f..f6db91b2 100644 --- a/pages/charts/chartjs.html +++ b/pages/charts/chartjs.html @@ -613,7 +613,7 @@ //Boolean - whether to make the chart responsive responsive: true, maintainAspectRatio: false - } + }; barChartOptions.datasetFill = false; barChart.Bar(barChartData, barChartOptions); diff --git a/pages/charts/inline.html b/pages/charts/inline.html index 4e023b0f..8b215f94 100755 --- a/pages/charts/inline.html +++ b/pages/charts/inline.html @@ -732,7 +732,7 @@ - + @@ -937,7 +937,7 @@ } lastmousetime = timenow; setTimeout(mdraw, mrefreshinterval); - } + }; // We could use setInterval instead, but I prefer to do it this way setTimeout(mdraw, mrefreshinterval); } diff --git a/pages/mailbox/mailbox.html b/pages/mailbox/mailbox.html index 979a149e..2e871d08 100644 --- a/pages/mailbox/mailbox.html +++ b/pages/mailbox/mailbox.html @@ -608,7 +608,7 @@ $(".mailbox-star").click(function (e) { e.preventDefault(); //detect type - var $this = $(this).find("a > i") + var $this = $(this).find("a > i"); var glyph = $this.hasClass("glyphicon"); var fa = $this.hasClass("fa"); diff --git a/plugins/ckeditor/plugins/wsc/dialogs/tmp.html b/plugins/ckeditor/plugins/wsc/dialogs/tmp.html index 67642956..6e9b012e 100755 --- a/plugins/ckeditor/plugins/wsc/dialogs/tmp.html +++ b/plugins/ckeditor/plugins/wsc/dialogs/tmp.html @@ -44,8 +44,8 @@ window.addEventListener('message', handler, false); } else { window.attachEvent("onmessage", handler); - }; - }; + } + }; var _sendCmd = function(o) { var str, type = Object.prototype.toString, @@ -57,9 +57,8 @@ if (type.call(o.message) == "[object Object]") { (o.message['id']) ? o.message['id'] : o.message['id'] = id; message = o.message; - }; - - str = JSON.stringify(message, fn); + } + str = JSON.stringify(message, fn); target.postMessage(str, '*'); }; @@ -88,7 +87,7 @@ if (scriptTag.readyState == "loaded" || scriptTag.readyState == "complete") { scriptTag.onreadystatechange = null; - setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1) + setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1); callback(); } }; @@ -98,13 +97,11 @@ setTimeout(function(){scriptTag.parentNode.removeChild(scriptTag)},1); callback(); }; - }; - scriptTag.src = src; + } + scriptTag.src = src; document.getElementsByTagName("head")[0].appendChild(scriptTag); - }; - - - window.onload = function(){ + } + window.onload = function(){ loadScript(appString, function(){ manageMessageTmp.send({ 'id': 'iframeOnload', diff --git a/plugins/datatables/jquery.dataTables.js b/plugins/datatables/jquery.dataTables.js index 1d8a220b..f1dd9fa5 100755 --- a/plugins/datatables/jquery.dataTables.js +++ b/plugins/datatables/jquery.dataTables.js @@ -4716,7 +4716,7 @@ { throw new Error(sAlert); } - return; + } else if ( window.console && console.log ) { diff --git a/plugins/flot/excanvas.js b/plugins/flot/excanvas.js index 70a8f25c..f45bf03d 100755 --- a/plugins/flot/excanvas.js +++ b/plugins/flot/excanvas.js @@ -1115,9 +1115,8 @@ if (!document.createElement('canvas').getContext) { x: Z * (aX * m[0][0] + aY * m[1][0] + m[2][0]) - Z2, y: Z * (aX * m[0][1] + aY * m[1][1] + m[2][1]) - Z2 }; - }; - - contextPrototype.save = function() { + } + contextPrototype.save = function() { var o = {}; copyState(this, o); this.aStack_.push(o); @@ -1366,7 +1365,7 @@ if (!document.createElement('canvas').getContext) { case null: case '': this.repetition_ = 'repeat'; - break + break; case 'repeat-x': case 'repeat-y': case 'no-repeat': diff --git a/plugins/flot/jquery.colorhelpers.js b/plugins/flot/jquery.colorhelpers.js index b2f6dc4e..cc1643b5 100755 --- a/plugins/flot/jquery.colorhelpers.js +++ b/plugins/flot/jquery.colorhelpers.js @@ -68,7 +68,7 @@ }; return o.normalize(); - } + }; // extract CSS color property from element, going up in the DOM // if it's "transparent" @@ -89,7 +89,7 @@ c = "transparent"; return $.color.parse(c); - } + }; // parse CSS color string (like "rgb(10, 32, 43)" or "#fff"), // returns color object, if parsing failed, you get black (0, 0, @@ -130,7 +130,7 @@ res = lookupColors[name] || [0, 0, 0]; return m(res[0], res[1], res[2]); } - } + }; var lookupColors = { aqua:[0,255,255], diff --git a/plugins/flot/jquery.flot.image.js b/plugins/flot/jquery.flot.image.js index d2837cf7..2e00ab18 100755 --- a/plugins/flot/jquery.flot.image.js +++ b/plugins/flot/jquery.flot.image.js @@ -94,7 +94,7 @@ Google Maps). callback(); }); - } + }; $.plot.image.load = function (urls, callback) { var missing = urls.length, loaded = {}; diff --git a/plugins/flot/jquery.flot.pie.js b/plugins/flot/jquery.flot.pie.js index 99158630..bf190e18 100755 --- a/plugins/flot/jquery.flot.pie.js +++ b/plugins/flot/jquery.flot.pie.js @@ -318,7 +318,7 @@ More detail and specific examples can be found in the included HTML file. if (options.series.pie.tilt <= 0.8) { drawShadow(); } - } while (!drawPie() && attempts < REDRAW_ATTEMPTS) + } while (!drawPie() && attempts < REDRAW_ATTEMPTS); if (attempts >= REDRAW_ATTEMPTS) { clear(); diff --git a/plugins/flot/jquery.flot.time.js b/plugins/flot/jquery.flot.time.js index 15f52815..ac9e666a 100755 --- a/plugins/flot/jquery.flot.time.js +++ b/plugins/flot/jquery.flot.time.js @@ -114,9 +114,8 @@ API.txt for details. sourceObj[sourceMethod] = function() { return targetObj[targetMethod].apply(targetObj, arguments); }; - }; - - var utc = { + } + var utc = { date: d }; @@ -137,9 +136,8 @@ API.txt for details. } return utc; - }; - - // select time zone strategy. This returns a date-like object tied to the + } + // select time zone strategy. This returns a date-like object tied to the // desired timezone function dateGenerator(ts, opts) { diff --git a/plugins/fullcalendar/fullcalendar.js b/plugins/fullcalendar/fullcalendar.js index ced9527e..d52e8241 100755 --- a/plugins/fullcalendar/fullcalendar.js +++ b/plugins/fullcalendar/fullcalendar.js @@ -13,9 +13,7 @@ } })(function($, moment) { -;; - -var defaults = { + var defaults = { titleRangeSeparator: ' \u2014 ', // emphasized dash monthYearFormat: 'MMMM YYYY', // required for en. other languages rely on datepicker computable option @@ -126,9 +124,7 @@ var rtlDefaults = { } }; -;; - -var fc = $.fullCalendar = { version: "2.2.5" }; + var fc = $.fullCalendar = { version: "2.2.5" }; var fcViews = fc.views = {}; @@ -206,9 +202,7 @@ function isForcedAtomicOption(name) { // FIX: find a different solution for view-option-hashes and have a whitelist // for options that can be recursively merged. -;; - -var langOptionHash = fc.langs = {}; // initialize and expose + var langOptionHash = fc.langs = {}; // initialize and expose // TODO: document the structure and ordering of a FullCalendar lang file @@ -357,8 +351,6 @@ function getMomentLocaleData(langCode) { // Also, sets it as the default. fc.lang('en', englishDefaults); -;; - // exports fc.intersectionToSeg = intersectionToSeg; fc.applyAll = applyAll; @@ -839,9 +831,7 @@ function debounce(func, wait) { }; } -;; - -var ambigDateOfMonthRegex = /^\s*\d{4}-\d\d$/; + var ambigDateOfMonthRegex = /^\s*\d{4}-\d\d$/; var ambigTimeOrZoneRegex = /^\s*\d{4}-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?)?$/; var newMomentProto = moment.fn; // where we will attach our new methods @@ -1286,8 +1276,6 @@ setLocalValues = allowValueOptimization ? function(mom, a) { moment.updateOffset(mom, false); // keepTime=false } : setMomentValues; -;; - // Single Date Formatting // ------------------------------------------------------------------------------------------------- @@ -1516,9 +1504,7 @@ function chunkFormatString(formatStr) { return chunks; } -;; - -fc.Class = Class; // export + fc.Class = Class; // export // class that all other classes will inherit from function Class() { } @@ -1557,9 +1543,7 @@ Class.extend = function(members) { Class.mixin = function(members) { copyOwnProps(members.prototype || members, this.prototype); }; -;; - -/* A rectangular panel that is absolutely positioned over other content + /* A rectangular panel that is absolutely positioned over other content ------------------------------------------------------------------------------------------------------------------------ Options: - className (string) @@ -1726,9 +1710,7 @@ var Popover = Class.extend({ }); -;; - -/* A "coordinate map" converts pixel coordinates into an associated cell, which has an associated date + /* A "coordinate map" converts pixel coordinates into an associated cell, which has an associated date ------------------------------------------------------------------------------------------------------------------------ Common interface: @@ -1888,9 +1870,7 @@ var ComboCoordMap = Class.extend({ }); -;; - -/* Tracks mouse movements over a CoordMap and raises events about which cell the mouse is over. + /* Tracks mouse movements over a CoordMap and raises events about which cell the mouse is over. ----------------------------------------------------------------------------------------------------------------------*/ // TODO: very useful to have a handler that gets called upon cellOut OR when dragging stops (for cleanup) @@ -2313,9 +2293,7 @@ function isCellsEqual(cell1, cell2) { return false; } -;; - -/* Creates a clone of an element and lets it track the mouse as it moves + /* Creates a clone of an element and lets it track the mouse as it moves ----------------------------------------------------------------------------------------------------------------------*/ var MouseFollower = Class.extend({ @@ -2500,9 +2478,7 @@ var MouseFollower = Class.extend({ }); -;; - -/* A utility class for rendering rows. + /* A utility class for rendering rows. ----------------------------------------------------------------------------------------------------------------------*/ // It leverages methods of the subclass and the View to determine custom rendering behavior for each row "type" // (such as highlight rows, day rows, helper rows, etc). @@ -2604,9 +2580,7 @@ var RowRenderer = Class.extend({ }); -;; - -/* An abstract class comprised of a "grid" of cells that each represent a specific datetime + /* An abstract class comprised of a "grid" of cells that each represent a specific datetime ----------------------------------------------------------------------------------------------------------------------*/ var Grid = fc.Grid = RowRenderer.extend({ @@ -3184,9 +3158,7 @@ var Grid = fc.Grid = RowRenderer.extend({ }); -;; - -/* Event-rendering and event-interaction methods for the abstract Grid class + /* Event-rendering and event-interaction methods for the abstract Grid class ----------------------------------------------------------------------------------------------------------------------*/ Grid.mixin({ @@ -4085,9 +4057,7 @@ function getDraggedElMeta(el) { } -;; - -/* A component that renders a grid of whole-days that runs horizontally. There can be multiple rows, one per week. + /* A component that renders a grid of whole-days that runs horizontally. There can be multiple rows, one per week. ----------------------------------------------------------------------------------------------------------------------*/ var DayGrid = Grid.extend({ @@ -4554,9 +4524,7 @@ var DayGrid = Grid.extend({ }); -;; - -/* Event-rendering methods for the DayGrid class + /* Event-rendering methods for the DayGrid class ----------------------------------------------------------------------------------------------------------------------*/ DayGrid.mixin({ @@ -4859,9 +4827,7 @@ function compareDaySegCols(a, b) { return a.leftCol - b.leftCol; } -;; - -/* Methods relate to limiting the number events for a given day on a DayGrid + /* Methods relate to limiting the number events for a given day on a DayGrid ----------------------------------------------------------------------------------------------------------------------*/ // NOTE: all the segs being passed around in here are foreground segs @@ -5214,9 +5180,7 @@ DayGrid.mixin({ }); -;; - -/* A component that renders one or more columns of vertical time slots + /* A component that renders one or more columns of vertical time slots ----------------------------------------------------------------------------------------------------------------------*/ var TimeGrid = Grid.extend({ @@ -5724,9 +5688,7 @@ var TimeGrid = Grid.extend({ }); -;; - -/* Event-rendering methods for the TimeGrid class + /* Event-rendering methods for the TimeGrid class ----------------------------------------------------------------------------------------------------------------------*/ TimeGrid.mixin({ @@ -6132,9 +6094,7 @@ function compareForwardSlotSegs(seg1, seg2) { compareSegs(seg1, seg2); } -;; - -/* An abstract class from which other views inherit from + /* An abstract class from which other views inherit from ----------------------------------------------------------------------------------------------------------------------*/ var View = fc.View = Class.extend({ @@ -6862,10 +6822,7 @@ var View = fc.View = Class.extend({ }); -;; - - -function Calendar(element, instanceOptions) { + function Calendar(element, instanceOptions) { var t = this; @@ -7668,9 +7625,7 @@ function Calendar(element, instanceOptions) { } -;; - -/* Top toolbar area with buttons and title + /* Top toolbar area with buttons and title ----------------------------------------------------------------------------------------------------------------------*/ // TODO: rename all header-related things to "toolbar" @@ -7896,9 +7851,7 @@ function Header(calendar, options) { } -;; - -fc.sourceNormalizers = []; + fc.sourceNormalizers = []; fc.sourceFetchers = []; var ajaxDefaults = { @@ -8983,9 +8936,7 @@ function backupEventDates(event) { event._end = event.end ? event.end.clone() : null; } -;; - -/* An abstract class for the "basic" views, as well as month view. Renders one or more rows of day cells. + /* An abstract class for the "basic" views, as well as month view. Renders one or more rows of day cells. ----------------------------------------------------------------------------------------------------------------------*/ // It is a manager for a DayGrid subcomponent, which does most of the heavy lifting. // It is responsible for managing width/height. @@ -9296,9 +9247,7 @@ var BasicView = fcViews.basic = View.extend({ }); -;; - -/* A month view with day cells running in rows (one-per-week) and columns + /* A month view with day cells running in rows (one-per-week) and columns ----------------------------------------------------------------------------------------------------------------------*/ setDefaults({ @@ -9350,27 +9299,21 @@ var MonthView = fcViews.month = BasicView.extend({ MonthView.duration = { months: 1 }; -;; - -/* A week view with simple day cells running horizontally + /* A week view with simple day cells running horizontally ----------------------------------------------------------------------------------------------------------------------*/ fcViews.basicWeek = { type: 'basic', duration: { weeks: 1 } }; -;; - -/* A view with a single simple day cell + /* A view with a single simple day cell ----------------------------------------------------------------------------------------------------------------------*/ fcViews.basicDay = { type: 'basic', duration: { days: 1 } }; -;; - -/* An abstract class for all agenda-related views. Displays one more columns with time slots running vertically. + /* An abstract class for all agenda-related views. Displays one more columns with time slots running vertically. ----------------------------------------------------------------------------------------------------------------------*/ // Is a manager for the TimeGrid subcomponent and possibly the DayGrid subcomponent (if allDaySlot is on). // Responsible for managing width/height. @@ -9772,24 +9715,18 @@ fcViews.agenda = View.extend({ // AgendaView }); -;; - -/* A week view with an all-day cell area at the top, and a time grid below + /* A week view with an all-day cell area at the top, and a time grid below ----------------------------------------------------------------------------------------------------------------------*/ fcViews.agendaWeek = { type: 'agenda', duration: { weeks: 1 } }; -;; - -/* A day view with an all-day cell area at the top, and a time grid below + /* A day view with an all-day cell area at the top, and a time grid below ----------------------------------------------------------------------------------------------------------------------*/ fcViews.agendaDay = { type: 'agenda', duration: { days: 1 } }; -;; - }); \ No newline at end of file diff --git a/plugins/iCheck/icheck.js b/plugins/iCheck/icheck.js index af111e19..4da1937a 100755 --- a/plugins/iCheck/icheck.js +++ b/plugins/iCheck/icheck.js @@ -44,7 +44,7 @@ stack = stack.add(self); } else { stack = stack.add(self.find(handle)); - }; + } }); }; @@ -64,12 +64,11 @@ tidy(self, 'ifDestroyed'); } else { operate(self, true, options); - }; - - // Fire method's callback + } + // Fire method's callback if ($.isFunction(fire)) { fire(); - }; + } }); // Customization @@ -97,14 +96,12 @@ // Selector limit if (selector == _checkbox || selector == _radio) { handle = 'input[type="' + selector + '"]'; - }; - - // Clickable area limit + } + // Clickable area limit if (area < -50) { area = -50; - }; - - // Walk around the selector + } + // Walk around the selector walker(this); return stack.each(function() { @@ -172,9 +169,8 @@ parent += '"'; }); - }; - - // Wrap input + } + // Wrap input parent = self.wrap(parent + '/>')[_callback]('ifCreated').parent().append(settings.insert); // Layer addition @@ -213,19 +209,17 @@ } else { parent[_add](hoverClass); item[_add](labelHoverClass); - }; - }; - - if (_mobile) { + } + } + if (_mobile) { event.stopPropagation(); } else { return false; - }; - }; + } + } }); - }; - - // Input events + } + // Input events self.on(_click + '.i focus.i blur.i keyup.i keydown.i keypress.i', function(event) { var type = event[_type], key = event.keyCode; @@ -241,10 +235,9 @@ off(self, _checked); } else { on(self, _checked); - }; - }; - - return false; + } + } + return false; // Keyup } else if (type == 'keyup' && node[_type] == _radio) { @@ -253,7 +246,7 @@ // Focus/blur } else if (/us|ur/.test(type)) { parent[type == 'blur' ? _remove : _add](focusClass); - }; + } }); // Helper events @@ -282,27 +275,25 @@ // State is off } else { parent[_remove](toggle + ' ' + activeClass); - }; - - // Label hover + } + // Label hover if (label.length && labelHover && toggle == hoverClass) { // mouseout|touchend label[/ut|nd/.test(type) ? _remove : _add](labelHoverClass); - }; - }; - - if (_mobile) { + } + } + if (_mobile) { event.stopPropagation(); } else { return false; - }; - }; + } + } }); }); } else { return this; - }; + } }; // Do something with inputs @@ -332,28 +323,25 @@ on(input, state, true); } else { off(input, state, true); - }; - }; - + } + } } else if (!direct || method == 'toggle') { // Helper or label was clicked if (!direct) { input[_callback]('ifClicked'); - }; - - // Toggle checked state + } + // Toggle checked state if (active) { if (node[_type] !== _radio) { off(input, state); - }; + } } else { on(input, state); - }; - }; - }; - - // Add checked, disabled or indeterminate state + } + } + } + // Add checked, disabled or indeterminate state function on(input, state, keep) { var node = input[0], parent = input.parent(), @@ -377,11 +365,10 @@ inputs.each(function() { if (this !== node && $(this).data(_iCheck)) { off($(this), state); - }; + } }); - }; - - // Indeterminate state + } + // Indeterminate state if (indeterminate) { // Add indeterminate state @@ -390,32 +377,27 @@ // Remove checked state if (node[_checked]) { off(input, _checked, 'force'); - }; - - // Checked or disabled state + } + // Checked or disabled state } else { // Add checked or disabled state if (!keep) { node[state] = true; - }; - - // Remove indeterminate state + } + // Remove indeterminate state if (checked && node[_indeterminate]) { off(input, _indeterminate, false); - }; - }; - - // Trigger callbacks + } + } + // Trigger callbacks callbacks(input, checked, state, keep); - }; - - // Add proper cursor + } + // Add proper cursor if (node[_disabled] && !!option(input, _cursor, true)) { parent.find('.' + _iCheckHelper).css(_cursor, 'default'); - }; - - // Add state class + } + // Add state class parent[_add](specific || option(input, state) || ''); // Set ARIA attribute @@ -423,9 +405,8 @@ // Remove regular state class parent[_remove](regular || option(input, callback) || ''); - }; - - // Remove checked, disabled or indeterminate state + } + // Remove checked, disabled or indeterminate state function off(input, state, keep) { var node = input[0], parent = input.parent(), @@ -442,18 +423,15 @@ // Toggle state if (indeterminate || !keep || keep == 'force') { node[state] = false; - }; - - // Trigger callbacks + } + // Trigger callbacks callbacks(input, checked, callback, keep); - }; - - // Add proper cursor + } + // Add proper cursor if (!node[_disabled] && !!option(input, _cursor, true)) { parent.find('.' + _iCheckHelper).css(_cursor, 'pointer'); - }; - - // Remove state class + } + // Remove state class parent[_remove](specific || option(input, state) || ''); // Set ARIA attribute @@ -461,9 +439,8 @@ // Add regular state class parent[_add](regular || option(input, callback) || ''); - }; - - // Remove all traces + } + // Remove all traces function tidy(input, callback) { if (input.data(_iCheck)) { @@ -473,34 +450,29 @@ // Callback if (callback) { input[_callback](callback); - }; - - // Unbind events + } + // Unbind events input.off('.i').unwrap(); $(_label + '[for="' + input[0].id + '"]').add(input.closest(_label)).off('.i'); - }; - }; - - // Get some option + } + } + // Get some option function option(input, state, regular) { if (input.data(_iCheck)) { return input.data(_iCheck).o[state + (regular ? '' : 'Class')]; - }; - }; - - // Capitalize some string + } + } + // Capitalize some string function capitalize(string) { return string.charAt(0).toUpperCase() + string.slice(1); - }; - - // Executable handlers + } + // Executable handlers function callbacks(input, checked, callback, keep) { if (!keep) { if (checked) { input[_callback]('ifToggled'); - }; - - input[_callback]('ifChanged')[_callback]('if' + capitalize(callback)); - }; - }; + } + input[_callback]('ifChanged')[_callback]('if' + capitalize(callback)); + } + } })(window.jQuery || window.Zepto); diff --git a/plugins/input-mask/jquery.inputmask.js b/plugins/input-mask/jquery.inputmask.js index cfbbfaa6..86cb3205 100755 --- a/plugins/input-mask/jquery.inputmask.js +++ b/plugins/input-mask/jquery.inputmask.js @@ -464,7 +464,6 @@ while (--position > 0 && !isMask(position)) { } - ; return position; } @@ -854,9 +853,6 @@ return end - (lengthBefore - buffer.length); //return new start position } - ; - - function HandleRemove(input, k, pos) { if (opts.numericInput || isRTL) { switch (k) { @@ -1419,8 +1415,7 @@ return getActiveBuffer().join(''); } } - }; - + } $.inputmask = { //options default defaults: { diff --git a/plugins/input-mask/jquery.inputmask.regex.extensions.js b/plugins/input-mask/jquery.inputmask.regex.extensions.js index c5bc30f3..e956569b 100755 --- a/plugins/input-mask/jquery.inputmask.regex.extensions.js +++ b/plugins/input-mask/jquery.inputmask.regex.extensions.js @@ -89,8 +89,7 @@ Allows for using regular expressions as a mask if (currentToken.matches.length > 0) opts.regexTokens.push(currentToken); - }; - + } function validateRegexToken(token, fromGroup) { var isvalid = false; if (fromGroup) { diff --git a/plugins/jQueryUI/jquery-ui-1.10.3.js b/plugins/jQueryUI/jquery-ui-1.10.3.js index 2ea9134e..c9a0affb 100755 --- a/plugins/jQueryUI/jquery-ui-1.10.3.js +++ b/plugins/jQueryUI/jquery-ui-1.10.3.js @@ -2923,7 +2923,7 @@ $.widget("ui.resizable", $.ui.mouse, { //TODO: What's that good for? There's not anything to be executed left if(!$(this.handles[i]).length) { - continue; + } } };