From 43eccd7121cf2a96992a22307b319e23dbdfc84f Mon Sep 17 00:00:00 2001 From: Koeun Choi Date: Tue, 26 Mar 2013 11:59:03 +0900 Subject: [PATCH] Tizen-winset: change tips for using listview remove redundant example codes. Change-Id: I94765fa802533de9ce0eb10ad6b3d578c316ba12 --- demos/tizen-winsets/tips/list-sample/list-sample.html | 5 ++--- demos/tizen-winsets/tips/list-sample/list-sample.js | 10 +--------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/demos/tizen-winsets/tips/list-sample/list-sample.html b/demos/tizen-winsets/tips/list-sample/list-sample.html index 63b182c..e3ddf02 100644 --- a/demos/tizen-winsets/tips/list-sample/list-sample.html +++ b/demos/tizen-winsets/tips/list-sample/list-sample.html @@ -32,12 +32,11 @@ - \ No newline at end of file + diff --git a/demos/tizen-winsets/tips/list-sample/list-sample.js b/demos/tizen-winsets/tips/list-sample/list-sample.js index ab37cd1..7d6d61c 100644 --- a/demos/tizen-winsets/tips/list-sample/list-sample.js +++ b/demos/tizen-winsets/tips/list-sample/list-sample.js @@ -27,21 +27,13 @@ $( document ).one( "pagecreate", "#list-sample", function () { }); $("#new").on( "vclick", function ( e ) { - $("#mylist").html("").trigger("create"); - - add_item(); - $("#mylist").listview("refresh"); - }); - - $("#new2").on( "vclick", function ( e ) { var i; $("#mylist").html("").trigger("create"); - for ( i = 0; i < 20; i++ ) { + for ( i = 0; i < 3; i++ ) { add_item(); } - $("#mylist").listview("refresh"); }); -- 2.7.4