Skip to content
Browse files

Working bill update; intentionally wrong total update

  • Loading branch information...
StoneCypher committed Apr 6, 2015
1 parent 868ad06 commit f79ea4e7b3dc64314340a5e83a08b20af0c248b5
Showing with 8 additions and 2 deletions.
  1. +8 −2 TipCalcPanel.jsx
@@ -1,14 +1,20 @@

var TipCalcPanel = flocks.createClass({

update: function() {
var NewBill = parseFloat(document.getElementById('billAmount').value);
this.fset('bill', NewBill);
this.fset('total', NewBill); // TEMPORARY AND WRONG

render: function() {

return (

<div id="panel">

<label id="amt" for="billAmount">
Bill amount: $<input id="billAmount"/>
<label id="amt" htmlFor="billAmount">
Bill amount: $<input id="billAmount" onChange={this.update}/>

<div id="howHappy">

0 comments on commit f79ea4e

Please sign in to comment.
You can’t perform that action at this time.