<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -64,6 +64,11 @@ Primer.prototype = {
     this.draw()
   },
   
+  removeChild: function(child) {
+    this.root.removeChild(child)
+    this.draw()
+  },
+  
   draw: function() {
     this.context.clearRect(0, 0, this.width, this.height)
     $(&quot;.primer_text&quot;, this.element).remove()
@@ -172,6 +177,17 @@ Primer.Layer.prototype = {
     if(this.primer) this.primer.draw()
   },
   
+  removeChild: function(child) {
+    var newChildren = []
+    for (var i = 0; i &lt; this.children.length; i++) {
+      var c = this.children[i]
+      if (c != child) {
+        newChildren.push(c)
+      }
+    }
+    this.children = newChildren
+  },
+  
   /* events */
   
   mouseover: function(fn) {</diff>
      <filename>primer.js</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fd6022c5c09804789254f1dd9c48553df329b5ad</id>
    </parent>
  </parents>
  <author>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </author>
  <url>http://github.com/mojombo/primer/commit/4b338ec325d13cb30476559a5258895373219b6d</url>
  <id>4b338ec325d13cb30476559a5258895373219b6d</id>
  <committed-date>2008-10-25T09:58:34-07:00</committed-date>
  <authored-date>2008-10-25T09:58:34-07:00</authored-date>
  <message>implement removeChild()</message>
  <tree>894cfb7254ce051ed5aefed2fe358399495a8003</tree>
  <committer>
    <name>Tom Preston-Werner</name>
    <email>tom@mojombo.com</email>
  </committer>
</commit>
