Commit aa110dfe069ac9230790a499a1a7f8207ae5f9f5

don't send updates for input elements (browser already knows about these)

Commit diff

html.lisp

 
2626 (class :initarg :class :accessor cls :initform nil)
2727 (title :initarg :title :accessor title :initform nil)
2828 (style :initarg :style :accessor style :initform nil)
29 (send :initarg :send :accessor send :initform t)
2930 (dirtyp :initarg :dirtyp :accessor dirtyp :initform nil)
3031 (xhtml :initarg :xhtml :accessor xhtml :initform nil
3132 :unchanged-if 'string=)))
4040 (#\Newline nil)
4141 (otherwise (princ char s))))))
4242
43(defmethod do-send (self new old)
44 (bwhen (s (send self))
45 (case s
46 ((t) t)
47 (:once (not old))
48 (otherwise (funcall s self new old)))))
49
50(defmethod do-send ((self input) new old)
51 (not old))
52
4353(defobserver xhtml ((self html))
44 (when new-value
54 (when (and new-value (do-send self new-value old-value))
4555 (trc nil "new xhtml for" self)
4656 (assert (u^ web-app))
4757 (push (cons self (format nil "$(\"#~a\").replaceWith(\"~a\")" (^id)
toggle raw diff