Skip to content

Instantly share code, notes, and snippets.

@joegaudet
Created June 11, 2010 08:12
Show Gist options
  • Save joegaudet/434230 to your computer and use it in GitHub Desktop.
Save joegaudet/434230 to your computer and use it in GitHub Desktop.
if (active) {
if (this._currentDirection !== null) {
active.set("buildDirection", this._currentDirection);
this.buildOutChild(active);
} else {
this.removeChild(active);
}
}
if (replacement) {
if (this._currentDirection !== null) {
replacement.set("buildDirection", this._currentDirection);
this.buildInChild(replacement);
} else {
this.removeChild(replacement); /// this should be append child not remove child!!!!!
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment