angular.module('mushin').controller('ListCtrl', function ($state, $scope, things, Thing, sortThings) {
  var state = $state.current
  var name = state.name
  var type = state.data.state
  var unit = type === Thing.MIT ? Thing.ONE_DAY : Thing.ONE_WEEK

  $scope[name] = []
  things.extend($scope)

  function fetchThings() {
    things.getAll(type)
      .then(function(all) {
        $scope[name] = sortThings(all, unit);
      })
  }

  fetchThings()

  $scope.$on('thingChange', function() {
    fetchThings()
  })
})

@@ -124,16 +124,17 @@
 .current
+;
 %0A  var n
@@ -149,16 +149,17 @@
 ate.name
+;
 %0A  var t
@@ -180,16 +180,17 @@
 ta.state
+;
 %0A  var u
@@ -246,16 +246,17 @@
 ONE_WEEK
+;
 %0A%0A  $sco
@@ -268,16 +268,17 @@
 me%5D = %5B%5D
+;
 %0A  thing
@@ -293,16 +293,17 @@
 ($scope)
+;
 %0A%0A  func
@@ -429,16 +429,17 @@
       %7D)
+;
 %0A  %7D%0A%0A  
@@ -451,16 +451,17 @@
 Things()
+;
 %0A%0A  $sco
@@ -516,13 +516,16 @@
 gs()
+;
 %0A  %7D)
+;
 %0A%7D)
+;
 %0A

add semicolons