Skip to content

Commit a5dbe27

Browse files
committed
fix(minification): Add ; to beginning of IIFE's to the code will concatenate and minify correctly.
Since removing all semi-colons, the IIFE's must start with a semi-colon so the parser will correctly terminte intermediate values. fixes #338
1 parent 5e6bf7e commit a5dbe27

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/js/datetimepicker.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* @since 2013-Jul-8
1111
*/
1212

13-
(function (root, factory) {
13+
;(function (root, factory) {
1414
'use strict'
1515
/* istanbul ignore if */
1616
if (typeof module !== 'undefined' && module.exports) {

src/js/datetimepicker.templates.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* @since 2016-Jan-31
1010
*/
1111

12-
(function (root, factory) {
12+
;(function (root, factory) {
1313
'use strict'
1414
/* istanbul ignore if */
1515
if (typeof module !== 'undefined' && module.exports) {

0 commit comments

Comments
 (0)