Skip to content

Commit

Permalink
Use val function in level creator logic
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSurabian committed Jan 30, 2013
1 parent 93a6a15 commit 2342a21
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ $(function() {
});

$(document).on('click','.doit',function(){
var LCwaves = parseInt($("#LCwaves").attr("value"));
var LCducks = parseInt($("#LCducks").attr("value"));
var LCbullets = parseInt($("#LCbullets").attr("value"));
var LCwavetime = parseInt($("#LCwavetime").attr("value"));
var LCdif = parseInt($("#LCdif").attr("value"));
var LCwaves = parseInt($("#LCwaves").val());
var LCducks = parseInt($("#LCducks").val());
var LCbullets = parseInt($("#LCbullets").val());
var LCwavetime = parseInt($("#LCwavetime").val());
var LCdif = parseInt($("#LCdif").val());

duckhunt.clearField();

Expand Down

0 comments on commit 2342a21

Please sign in to comment.