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 -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -