code: function save() {
          var res = this;
          res.$created = true;
          return this.$loc.$save(this.$toObject()).then(function() {
            emitter.emit('updated', res);
            if (!res.$resolved) {
              res.$deferred.resolve(res);
              res.$resolved = true;
            }
            return res;
          });
        }
docs: The promise resolves once the save has been committed