 
 
     saved: =>
-      @dirty = false
+      @dirty = @empty()
       $(window).unbind "beforeunload"
 
     unsaved: =>

        variant: variant
        quantity: null
        max_quantity: null
      @line_items.push variant.line_item

      for line_item in @line_items
        line_item.variant.line_item = line_item
        Variants.register line_item.variant
      @dirty = @empty()

    orderChanged: =>
      @unsaved()
