 
   _onChangeLoops: (changed) =>
     loops = if changed.name == 'n' then changed.value else changed.name
-    @model.set 'loops', loops
+    @model.loops(loops)
 
 
 



  _initializeLoopsButton: =>
    loops = @model.get 'loops'

    # ensure loops property is set
    unless loops?
      loops = 'one'
      @model.set 'loops', loops

    # determine initial view index for cycle button
    initialView = switch loops

      # avoid decrementing the loop count multiple times before restart finishes
      return if @restarting

      loops = @model.loops()

      # if loops is a number, count video loops
      if parseInt(loops) >= 0
