From: Koeun Choi Date: Fri, 8 Mar 2013 07:11:58 +0000 (+0900) Subject: demos : change live to on X-Git-Tag: accepted/tizen_2.1/20130425.023924~7^2~35 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4bb47bf8a7e66230b4ecfb071e175a4793672bb6;p=platform%2Fframework%2Fweb%2Fweb-ui-fw.git demos : change live to on Change-Id: I2316ccc092edf16c7462580c593c02e19f914ccb --- diff --git a/demos/tizen-winsets/main.js b/demos/tizen-winsets/main.js index 0d238f0..46ecfbd 100644 --- a/demos/tizen-winsets/main.js +++ b/demos/tizen-winsets/main.js @@ -64,7 +64,7 @@ $( document ).bind("pagecreate", function () { }); /* Gen list : Dummy DB load */ - $(".virtuallist_demo_page").live("pagecreate", function () { + $( document ).on( "pagecreate", ".virtuallist_demo_page", function () { /* ?_=ts code for no cache mechanism */ $.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) { $("ul").filter( function () { @@ -77,7 +77,7 @@ $( document ).bind("pagecreate", function () { }); /*Expandable list : Dummy DB load*/ - $("#genlist_extendable_page").live("pagecreate", function ( el ) { + $( document ).on( "pagecreate", "#genlist_extendable_page", function () { /*?_=ts code for no cache mechanism*/ $.getScript( "./virtuallist-db-demo.js", function ( data, textStatus ) { $("ul").filter( function () { @@ -91,7 +91,7 @@ $( document ).bind("pagecreate", function () { }); // Expand all textarea height automatically - $('#ButtonNolist').live( "pagecreate", function ( ev ) { + $( document ).on( "pagecreate", "#ButtonNolist", function ( ev ) { var page = $( ev.target ); $( page ).bind( 'pageshow' , function ( ) { var textarea = page.find('textarea'); diff --git a/demos/tizen-winsets/tips/generate-elements-dynamically.js b/demos/tizen-winsets/tips/generate-elements-dynamically.js index 415343e..57ba5f9 100644 --- a/demos/tizen-winsets/tips/generate-elements-dynamically.js +++ b/demos/tizen-winsets/tips/generate-elements-dynamically.js @@ -11,11 +11,11 @@ function addCheckbox(){ } -$( '#bAdd' ).live( 'vclick', function () { +$( document ).on( "vclick", "#bAdd", function () { addCheckbox(); } ); -$( "#ButtonAdd" ).live( "vclick", function() { +$( document ).on( "vclick", "#ButtonAdd", function () { /* Append new button */ var buttonTemplate = "