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
Post a Comment