 		]
 		[:div {:x x :y y 
 				:onClick seat-click
-			 	:class (if-not @current "seat" ["seat" (get @current :status)]
+			 	:class (do 
+			 							
+			 				(when (= "pending" (get @current :status))
+								(swap! renders inc)
+								;(.warn js/console (.now js/Date))
+			 					)
+			 				(if-not @current "seat" ["seat" (get @current :status)])
+
 			 				)
 			 	;:class (reduce conj ["seat"] 
 				;			(if-not (@seats id)

(defn- attr[el n]
	(.getAttribute el n))


(defn- range-key [r] 
    [(first r) (last r)])

;;;;;

(rum/defc booking-info  < rum/cursored-watch [app-state]
	(let [seats (rum/cursor app-state [:seats])
		  booked (filter 
   					(fn [[k {status :status}]]
     					(= "pending" status)) @seats)]
		[:pre 
			(pr-str booked)
		]
	)
)

)		


(rum/defc seat-plan < rum/cursored-watch [app-state]
	(let [seats (rum/cursor app-state [:seats])

	      parter-rows (range 1 14)
		  side_rows (range 1 12)
		  back_house_rows (range 14 21)

		  left_side_cols (reverse (range 37 40))
		  right_side_cols (reverse (range 1 4))
		  left_house_cols (reverse (range 20 37))
		  right_house_cols (reverse (range 4 20)) 		

	      beletage_cols (range 1 32)

	      beletage_last_cols (range 1 26)
	      beletage_last_rows (range 21 22)
		
		]

		[:div.seat-plan {:key "root"}
