app/assets/javascripts/angular/scheduler.ctrl.js
// initData gets set as a global var through the html (show.haml/index.haml)
initData gets set as a global var through the html (show.haml/index.haml)
initData gets set as a global var through the html ( show . haml / index . haml )
function init(data) {
    Schedule.setSchedule(data.schedule, data.hour_range);
    Schedule.setUserId(data.id);
    Schedule.enableModify(data.canModify);
  }
function init ( data ) { Schedule . setSchedule ( data . schedule , data . hour_range ) ; Schedule . setUserId ( data . id ) ; Schedule . enableModify ( data . canModify ) ; }
initData gets set as a global var through the html (show.haml/index.haml)
initData gets set as a global var through the html ( show . haml / index . haml )