ember.js - How to prevent two dates from overlapping? -


in indexcontroller, have 2 properties, from , to, both containing instance of date object.

i have set 1 separate observer each property , run overlap-prevention logic in there -- right approach?

here's js bin: http://jsbin.com/yijezebetaya/1/

yes, approach acceptable.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

python - Django-cities exits with "killed" -

python - How to get a widget position inside it's layout in Kivy? -