From 4bb47bf8a7e66230b4ecfb071e175a4793672bb6 Mon Sep 17 00:00:00 2001 From: Koeun Choi Date: Fri, 8 Mar 2013 16:11:58 +0900 Subject: [PATCH] demos : change live to on Change-Id: I2316ccc092edf16c7462580c593c02e19f914ccb --- demos/tizen-winsets/main.js | 6 +++--- demos/tizen-winsets/tips/generate-elements-dynamically.js | 6 +++--- demos/tizen-winsets/widgets/checkbox/checkbox.js | 2 +- demos/tizen-winsets/widgets/ctxpopup.js | 4 ++-- demos/tizen-winsets/widgets/list/list-edit.js | 4 ++-- demos/tizen-winsets/widgets/progressbar.js | 4 ++-- demos/tizen-winsets/widgets/radio/radio.js | 2 +- 7 files changed, 14 insertions(+), 14 deletions(-) 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 = "