Skip to content

Commit 7d56309

Browse files
Change function variables to function declarations for .NETs minify
1 parent a02dd76 commit 7d56309

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

jquery-ui-timepicker-addon.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -1755,7 +1755,7 @@
17551755
* jQuery isEmptyObject does not check hasOwnProperty - if someone has added to the object prototype,
17561756
* it will return false for all objects
17571757
*/
1758-
var isEmptyObject = function(obj) {
1758+
function isEmptyObject(obj) {
17591759
var prop;
17601760
for (prop in obj) {
17611761
if (obj.hasOwnProperty(obj)) {
@@ -1768,7 +1768,7 @@
17681768
/*
17691769
* jQuery extend now ignores nulls!
17701770
*/
1771-
var extendRemove = function(target, props) {
1771+
function extendRemove(target, props) {
17721772
$.extend(target, props);
17731773
for (var name in props) {
17741774
if (props[name] === null || props[name] === undefined) {
@@ -1782,7 +1782,7 @@
17821782
* Determine by the time format which units are supported
17831783
* Returns an object of booleans for each unit
17841784
*/
1785-
var detectSupport = function(timeFormat){
1785+
function detectSupport(timeFormat){
17861786
var tf = timeFormat.replace(/\'.*?\'/g,'').toLowerCase(), // removes literals
17871787
isIn = function(f, t){ // does the format contain the token?
17881788
return f.indexOf(t) !== -1? true:false;
@@ -1803,7 +1803,7 @@
18031803
* Converts 24 hour format into 12 hour
18041804
* Returns 12 hour without leading 0
18051805
*/
1806-
var convert24to12 = function(hour) {
1806+
function convert24to12(hour) {
18071807
if (hour > 12) {
18081808
hour = hour - 12;
18091809
}
@@ -1820,7 +1820,7 @@
18201820
* Throws exception when date can't be parsed
18211821
* Returns [dateString, timeString]
18221822
*/
1823-
var splitDateTime = function(dateFormat, dateTimeString, dateSettings, timeSettings) {
1823+
function splitDateTime(dateFormat, dateTimeString, dateSettings, timeSettings) {
18241824
try {
18251825
// The idea is to get the number separator occurances in datetime and the time format requested (since time has
18261826
// fewer unknowns, mostly numbers and am/pm). We will use the time pattern to split.
@@ -1868,7 +1868,7 @@
18681868
* date - parsed date without time (type Date)
18691869
* timeObj = {hour: , minute: , second: , millisec: , microsec: } - parsed time. Optional
18701870
*/
1871-
var parseDateTimeInternal = function(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
1871+
function parseDateTimeInternal(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
18721872
var date;
18731873
var splitRes = splitDateTime(dateFormat, dateTimeString, dateSettings, timeSettings);
18741874
date = $.datepicker._base_parseDate(dateFormat, splitRes[0], dateSettings);
@@ -1893,7 +1893,7 @@
18931893
/*
18941894
* Internal function to set timezone_select to the local timezone
18951895
*/
1896-
var selectLocalTimezone = function(tp_inst, date) {
1896+
function selectLocalTimezone(tp_inst, date) {
18971897
if (tp_inst && tp_inst.timezone_select) {
18981898
var now = typeof date !== 'undefined' ? date : new Date();
18991899
tp_inst.timezone_select.val(now.getTimezoneOffset()*-1);

0 commit comments

Comments
 (0)