code: function(scope, element, isolate, unregisterCallback) {
          scope.$emit('registerChild', isolate);
  
          element.one('$destroy', function() {
            if ('removeMethod' in isolate) {
              isolate.removeMethod(isolate.id);
            }
  
            if(isolate && isolate.hide) { isolate.hide(); }
  
            // Invoke the callback, if provided
            if(unregisterCallback) unregisterCallback();
          });
        }
docs: @ngdoc method
  @name $famousDecorator#registerChild
  @module famous.angular
  @description
  Register a child isolate's renderNode to the nearest parent that can sequence
  it, and set up an event listener to remove it when the associated element is destroyed
  by Angular.
  
  A `registerChild` event is sent upward with `scope.$emit`.
  
  @param {String} scope - the scope with an isolate to be sequenced
  @param {String} element - the element to listen for destruction on
  @param {Object} isolate - an isolated scope object from $famousDecorator#ensureIsolate
  @param {Function} unregisterCallback - an optional callback to invoke when unregistration is complete
  @returns {void}