   #onmousedown handlers
   baseDown: (event) ->
 
+    #the order actually matters here, need to hide the equation editor first
+    #so the equations get saved to the underlying object before the props
+    #editor sends them to addie
+    @ve.equationEditor.hide()
     @ve.propsEditor.hide()
-    @ve.equationEditor.hide()
 
     #get the list of objects the mouse click intersected
     #@ve.scene.updateMatrixWorld()

  show: (m) ->
    @model = m
    console.log("showing equation editor")
    $("#eqtnSrc").val(@model.props.eqtns)
    $("#eqtnEditor").css("display", "inline")
  
  hide: () ->
    console.log("hiding equation editor")
    if @model?
      @model.props.eqtns = $("#eqtnSrc").val()
    $("#eqtnEditor").css("display", "none")



        name: "model0",
        sys: "root",
        params: "",
        equations: ""
      }
      @id = {
        name: "model0",
