Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
build: release 1.0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
fengyuanchen committed Jan 19, 2019
1 parent 3779ee2 commit e3e99d0
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 56 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## 1.0.6 (Jan 19, 2019)

- Fix wrong parameter for the `$.contains` function.

## 1.0.5 (Jan 19, 2019)

- Emulate click in touch devices to support hiding the picker automatically (#197).
Expand Down
23 changes: 12 additions & 11 deletions dist/datepicker.common.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.5
* Datepicker v1.0.6
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T07:06:03.574Z
* Date: 2019-01-19T09:15:49.236Z
*/

'use strict';
Expand Down Expand Up @@ -269,6 +269,11 @@ var methods = {
$(window).on(EVENT_RESIZE, this.onResize = proxy(this.place, this));
$(document).on(EVENT_CLICK, this.onGlobalClick = proxy(this.globalClick, this));
$(document).on(EVENT_KEYUP, this.onGlobalKeyup = proxy(this.globalKeyup, this));

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, this.onTouchStart = proxy(this.touchstart, this));
}

this.place();
}
},
Expand All @@ -290,6 +295,10 @@ var methods = {
$(window).off(EVENT_RESIZE, this.onResize);
$(document).off(EVENT_CLICK, this.onGlobalClick);
$(document).off(EVENT_KEYUP, this.onGlobalKeyup);

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.onTouchStart);
}
}
},
toggle: function toggle() {
Expand Down Expand Up @@ -768,7 +777,7 @@ var handlers = {
var target = _ref3.target;

// Emulate click in touch devices to support hiding the picker automatically (#197).
if (this.isInput && target !== this.element && !$.contains(this.$picker, target)) {
if (this.isInput && target !== this.element && !$.contains(this.$picker[0], target)) {
this.hide();
this.element.blur();
}
Expand Down Expand Up @@ -1241,10 +1250,6 @@ function () {
} else {
$this.on(EVENT_CLICK, $.proxy(this.show, this));
}

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, $.proxy(this.touchstart, this));
}
}
}
}, {
Expand Down Expand Up @@ -1277,10 +1282,6 @@ function () {
} else {
$this.off(EVENT_CLICK, this.show);
}

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.touchstart);
}
}
}
}, {
Expand Down
4 changes: 2 additions & 2 deletions dist/datepicker.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.5
* Datepicker v1.0.6
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T07:05:59.993Z
* Date: 2019-01-19T09:15:45.725Z
*/

.datepicker-container {
Expand Down
23 changes: 12 additions & 11 deletions dist/datepicker.esm.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.5
* Datepicker v1.0.6
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T07:06:03.574Z
* Date: 2019-01-19T09:15:49.236Z
*/

import $ from 'jquery';
Expand Down Expand Up @@ -265,6 +265,11 @@ var methods = {
$(window).on(EVENT_RESIZE, this.onResize = proxy(this.place, this));
$(document).on(EVENT_CLICK, this.onGlobalClick = proxy(this.globalClick, this));
$(document).on(EVENT_KEYUP, this.onGlobalKeyup = proxy(this.globalKeyup, this));

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, this.onTouchStart = proxy(this.touchstart, this));
}

this.place();
}
},
Expand All @@ -286,6 +291,10 @@ var methods = {
$(window).off(EVENT_RESIZE, this.onResize);
$(document).off(EVENT_CLICK, this.onGlobalClick);
$(document).off(EVENT_KEYUP, this.onGlobalKeyup);

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.onTouchStart);
}
}
},
toggle: function toggle() {
Expand Down Expand Up @@ -764,7 +773,7 @@ var handlers = {
var target = _ref3.target;

// Emulate click in touch devices to support hiding the picker automatically (#197).
if (this.isInput && target !== this.element && !$.contains(this.$picker, target)) {
if (this.isInput && target !== this.element && !$.contains(this.$picker[0], target)) {
this.hide();
this.element.blur();
}
Expand Down Expand Up @@ -1237,10 +1246,6 @@ function () {
} else {
$this.on(EVENT_CLICK, $.proxy(this.show, this));
}

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, $.proxy(this.touchstart, this));
}
}
}
}, {
Expand Down Expand Up @@ -1273,10 +1278,6 @@ function () {
} else {
$this.off(EVENT_CLICK, this.show);
}

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.touchstart);
}
}
}
}, {
Expand Down
23 changes: 12 additions & 11 deletions dist/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.5
* Datepicker v1.0.6
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T07:06:03.574Z
* Date: 2019-01-19T09:15:49.236Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -271,6 +271,11 @@
$(window).on(EVENT_RESIZE, this.onResize = proxy(this.place, this));
$(document).on(EVENT_CLICK, this.onGlobalClick = proxy(this.globalClick, this));
$(document).on(EVENT_KEYUP, this.onGlobalKeyup = proxy(this.globalKeyup, this));

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, this.onTouchStart = proxy(this.touchstart, this));
}

this.place();
}
},
Expand All @@ -292,6 +297,10 @@
$(window).off(EVENT_RESIZE, this.onResize);
$(document).off(EVENT_CLICK, this.onGlobalClick);
$(document).off(EVENT_KEYUP, this.onGlobalKeyup);

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.onTouchStart);
}
}
},
toggle: function toggle() {
Expand Down Expand Up @@ -770,7 +779,7 @@
var target = _ref3.target;

// Emulate click in touch devices to support hiding the picker automatically (#197).
if (this.isInput && target !== this.element && !$.contains(this.$picker, target)) {
if (this.isInput && target !== this.element && !$.contains(this.$picker[0], target)) {
this.hide();
this.element.blur();
}
Expand Down Expand Up @@ -1243,10 +1252,6 @@
} else {
$this.on(EVENT_CLICK, $.proxy(this.show, this));
}

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, $.proxy(this.touchstart, this));
}
}
}
}, {
Expand Down Expand Up @@ -1279,10 +1284,6 @@
} else {
$this.off(EVENT_CLICK, this.show);
}

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.touchstart);
}
}
}
}, {
Expand Down
4 changes: 2 additions & 2 deletions dist/datepicker.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/datepicker.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/css/datepicker.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.5
* Datepicker v1.0.6
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T07:05:59.993Z
* Date: 2019-01-19T09:15:45.725Z
*/

.datepicker-container {
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
<div class="container">
<div class="row">
<div class="col-md">
<h1>Datepicker <small class="h6">v1.0.5</small></h1>
<h1>Datepicker <small class="h6">v1.0.6</small></h1>
<p class="lead">A simple jQuery datepicker plugin.</p>
</div>
<div class="col-md">
Expand Down
23 changes: 12 additions & 11 deletions docs/js/datepicker.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*!
* Datepicker v1.0.5
* Datepicker v1.0.6
* https://fengyuanchen.github.io/datepicker
*
* Copyright 2014-present Chen Fengyuan
* Released under the MIT license
*
* Date: 2019-01-19T07:06:03.574Z
* Date: 2019-01-19T09:15:49.236Z
*/

(function (global, factory) {
Expand Down Expand Up @@ -271,6 +271,11 @@
$(window).on(EVENT_RESIZE, this.onResize = proxy(this.place, this));
$(document).on(EVENT_CLICK, this.onGlobalClick = proxy(this.globalClick, this));
$(document).on(EVENT_KEYUP, this.onGlobalKeyup = proxy(this.globalKeyup, this));

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, this.onTouchStart = proxy(this.touchstart, this));
}

this.place();
}
},
Expand All @@ -292,6 +297,10 @@
$(window).off(EVENT_RESIZE, this.onResize);
$(document).off(EVENT_CLICK, this.onGlobalClick);
$(document).off(EVENT_KEYUP, this.onGlobalKeyup);

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.onTouchStart);
}
}
},
toggle: function toggle() {
Expand Down Expand Up @@ -770,7 +779,7 @@
var target = _ref3.target;

// Emulate click in touch devices to support hiding the picker automatically (#197).
if (this.isInput && target !== this.element && !$.contains(this.$picker, target)) {
if (this.isInput && target !== this.element && !$.contains(this.$picker[0], target)) {
this.hide();
this.element.blur();
}
Expand Down Expand Up @@ -1243,10 +1252,6 @@
} else {
$this.on(EVENT_CLICK, $.proxy(this.show, this));
}

if (IS_TOUCH_DEVICE) {
$(document).on(EVENT_TOUCH_START, $.proxy(this.touchstart, this));
}
}
}
}, {
Expand Down Expand Up @@ -1279,10 +1284,6 @@
} else {
$this.off(EVENT_CLICK, this.show);
}

if (IS_TOUCH_DEVICE) {
$(document).off(EVENT_TOUCH_START, this.touchstart);
}
}
}
}, {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@chenfengyuan/datepicker",
"description": "A simple jQuery datepicker plugin.",
"version": "1.0.5",
"version": "1.0.6",
"main": "dist/datepicker.common.js",
"module": "dist/datepicker.esm.js",
"unpkg": "dist/datepicker.js",
Expand Down

0 comments on commit e3e99d0

Please sign in to comment.