jdewit / bootstrap-timepicker

[Deprecated] A simple timepicker component for Twitter Bootstrap
MIT License
1.64k stars 1.09k forks source link

'.js' file and '.min.js' file are different? #253

Closed songgun closed 9 years ago

songgun commented 9 years ago

Hi, It's my first github post, and my English is not good. Hope you understand.

'getTime' function code of 'bootstrap-timepicker.js' file is start with...

...... getTime: function() { if (this.hour === '') { return ''; } ......

but, 'getTime' function code of 'bootstrap-timepicker.min.js' file is start with...

...... getTime:function(){return this.hour||this.minute||this.second?(this ......

It's OK? These two files behave differently. Is it intentional code?

mix3d commented 9 years ago

according to this commit: https://github.com/jdewit/bootstrap-timepicker/commit/cefe33ee70ae2c6a995ab232016f9059d9dc606c

this is intentional. If you look at the last updated timestamps for both files, you'll see that the .min.js version hasn't been updated in a while.

mrhota commented 9 years ago

they should be the same now.