diff --git a/bower.json b/bower.json index 57c3ffa..e9fc58b 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { "name": "nan-timepicker", - "version": "0.1.2", + "version": "0.1.3", "main": "dist/nan-timepicker.js", "ignore": [ "**/.*", diff --git a/dist/nan-timepicker.js b/dist/nan-timepicker.js index 6dd81e6..d3ece9f 100644 --- a/dist/nan-timepicker.js +++ b/dist/nan-timepicker.js @@ -193,6 +193,10 @@ return self; }, + get: function() { + return $(this); + }, + getSecondsFromMidnight: function() { return _time2int(_getTimeValue(this)); }, diff --git a/dist/nan-timepicker.min.js b/dist/nan-timepicker.min.js index e56bbdf..fa8db21 100644 --- a/dist/nan-timepicker.min.js +++ b/dist/nan-timepicker.min.js @@ -1,7 +1,7 @@ /** - * nan-timepicker.js 0.1.2 + * nan-timepicker.js 0.1.3 * https://github.com/nanlabs/nan-timepicker - * Date Compiled: 2013-09-30 + * Date Compiled: 2014-01-24 * */ -!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){function b(){return new Date(1970,1,1,0,0,0)}function c(a,b){return a[0]-b[0]}function d(a){if(a.minTime&&(a.minTime=s(a.minTime)),a.maxTime&&(a.maxTime=s(a.maxTime)),a.durationTime&&"function"!=typeof a.durationTime&&(a.durationTime=s(a.durationTime)),a.disableTimeRanges.length>0){for(var b in a.disableTimeRanges)a.disableTimeRanges[b]=[s(a.disableTimeRanges[b][0]),s(a.disableTimeRanges[b][1])];a.disableTimeRanges=a.disableTimeRanges.sort(c)}if(a.timeRanges.length>0)for(var d in a.timeRanges){var e=a.timeRanges[d];e.className=e.className||"",e.disabled="undefined"!==e.disabled?e.disabled:!1,e.ranges=e.ranges||[];for(var f in e.ranges)e.ranges[f]=[s(e.ranges[f][0]),s(e.ranges[f][1])];e.ranges=e.ranges.sort(c)}return a}function e(b){var c=b.data("timepicker-settings"),d=b.data("timepicker-list");d&&d.length&&(d.remove(),b.data("timepicker-list",!1)),d=a("