Skip to content

Commit

Permalink
http://api.jquery.com/live/ : .live() is long gone deprecated. Now it…
Browse files Browse the repository at this point in the history
… is finally removed and the code had to be changed to use .on() like it should.
  • Loading branch information
GerHobbelt committed Dec 25, 2012
1 parent aa1c979 commit 62a610a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions web/content/assets/js/usf.js
Expand Up @@ -15,12 +15,12 @@ $(function () {
$("#process_btn").click(processGrammar);
$("#parse_btn").click(runParser);

$(".action, .state").live("click", function (ev){
$(".action, .state").on("click", function (ev){
if (!$(ev.target).is("a"))
$(this).toggleClass("open");
});

$(".action, .state").live("dblclick", function (ev){
$(".action, .state").on("dblclick", function (ev){
var row = this.className.match(/(row_[0-9]+)/)[1];
$(this).hasClass("open") ?
$("."+row).removeClass("open") :
Expand Down
4 changes: 2 additions & 2 deletions web/jison/main.js
Expand Up @@ -12,12 +12,12 @@ $(function () {
$("#process_btn").click(processGrammar);
$("#parse_btn").click(runParser);

$(".action, .state").live("click", function (ev){
$(".action, .state").on("click", function (ev){
if (!$(ev.target).is("a"))
$(this).toggleClass("open");
});

$(".action, .state").live("dblclick", function (ev){
$(".action, .state").on("dblclick", function (ev){
var row = this.className.match(/(row_[0-9]+)/)[1];
$(this).hasClass("open") ?
$("."+row).removeClass("open") :
Expand Down

0 comments on commit 62a610a

Please sign in to comment.