Skip to content

Commit f076d9a

Browse files
Change variable names for .NET MVC minify
1 parent 7d56309 commit f076d9a

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

jquery-ui-timepicker-addon.js

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@
163163
/*
164164
* Create a new Timepicker instance
165165
*/
166-
_newInst: function($input, o) {
166+
_newInst: function($input, opts) {
167167
var tp_inst = new Timepicker(),
168168
inlineSettings = {},
169169
fns = {},
@@ -206,11 +206,11 @@
206206
};
207207
for (i in overrides) {
208208
if (overrides.hasOwnProperty(i)) {
209-
fns[i] = o[i] || null;
209+
fns[i] = opts[i] || null;
210210
}
211211
}
212212

213-
tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, o, overrides, {
213+
tp_inst._defaults = $.extend({}, this._defaults, inlineSettings, opts, overrides, {
214214
evnts:fns,
215215
timepicker: tp_inst // add timepicker as a property of datepicker: $.datepicker._get(dp_inst, 'timepicker');
216216
});
@@ -270,8 +270,8 @@
270270
tp_inst.ampm = '';
271271
tp_inst.$input = $input;
272272

273-
if (o.altField) {
274-
tp_inst.$altInput = $(o.altField).css({
273+
if (tp_inst._defaults.altField) {
274+
tp_inst.$altInput = $(tp_inst._defaults.altField).css({
275275
cursor: 'pointer'
276276
}).focus(function() {
277277
$input.trigger("focus");
@@ -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-
function isEmptyObject(obj) {
1758+
var isEmptyObject = function(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-
function extendRemove(target, props) {
1771+
var extendRemove = function(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-
function detectSupport(timeFormat){
1785+
var detectSupport = function(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-
function convert24to12(hour) {
1806+
var convert24to12 = function(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-
function splitDateTime(dateFormat, dateTimeString, dateSettings, timeSettings) {
1823+
var splitDateTime = function(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-
function parseDateTimeInternal(dateFormat, timeFormat, dateTimeString, dateSettings, timeSettings) {
1871+
var parseDateTimeInternal = function(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-
function selectLocalTimezone(tp_inst, date) {
1896+
var selectLocalTimezone = function(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)