Skip to content

Commit

Permalink
chore: version up v3.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
jung-han committed Mar 26, 2019
1 parent a030277 commit 65c2f5f
Show file tree
Hide file tree
Showing 5 changed files with 1,098 additions and 1,099 deletions.
2 changes: 1 addition & 1 deletion dist/tui-date-picker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tui-date-picker.min.js
* @version 3.3.1
* @version 3.3.2
* @author NHNEnt FE Development Lab <dl_javascript@nhnent.com>
* @license MIT
*/
Expand Down
30 changes: 14 additions & 16 deletions dist/tui-date-picker.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* tui-date-picker.js
* @version 3.3.1
* @version 3.3.2
* @author NHNEnt FE Development Lab <dl_javascript@nhnent.com>
* @license MIT
*/
Expand Down Expand Up @@ -5159,10 +5159,17 @@ return /******/ (function(modules) { // webpackBootstrap

'use strict';

var snippet = __webpack_require__(3);

var $ = __webpack_require__(2);

/**
* Detect mobile browser
* @private
* @returns {boolean} Whether using Mobile browser
*/
function isMobile() {
return /Android|BlackBerry|iPhone|iPad|iPod|Opera Mini|IEMobile|WPDesktop/i.test(navigator.userAgent);
}

/**
* For using one - Touch or Mouse Events
* @param {jQuery|string|Element} target - Target element
Expand All @@ -5173,27 +5180,18 @@ return /******/ (function(modules) { // webpackBootstrap
*/
module.exports = function(target, handler, option) {
var $target = $(target);
var eventList = ['touchend', 'click'];
var selector, namespace, events;
var eventType = isMobile() ? 'touchend' : 'click';
var selector, namespace;

option = option || {};
selector = option.selector || null;
namespace = option.namespace || '';

if (namespace) {
eventList = snippet.map(eventList, function(eventName) {
return eventName + '.' + namespace;
});
eventType = eventType + '.' + namespace;
}

events = eventList.join(' ');
$target.on(events, selector, function onceHandler(ev) {
var newEventName = ev.type + '.' + namespace;

handler(ev);
$target.off(events, selector, onceHandler)
.on(newEventName, selector, handler);
});
$target.on(eventType, selector, handler);
};


Expand Down
4 changes: 2 additions & 2 deletions dist/tui-date-picker.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 65c2f5f

Please sign in to comment.