diff --git a/snippets/timer.js b/snippets/timer.js
index <HASH>..<HASH> 100644
--- a/snippets/timer.js
+++ b/snippets/timer.js
@@ -1,11 +1,11 @@
 new tabris.Button({
-  layoutData: {centerX: 0, centerY: 0},
+  centerX: 0, centerY: 0,
   text: 'Press me!'
 }).on('select', function(widget) {
-  widget.set('text', 'Please wait...');
+  widget.text = 'Please wait...';
   setTimeout(sayThanks, 2000, widget);
 }).appendTo(tabris.ui.contentView);
 
 function sayThanks(widget) {
-  widget.set('text', 'Thank you!');
+  widget.text = 'Thank you!';
 }
Modernize timer snippet

Don't use practices, which are not encouraged in Tabris 2.x anymore,
e.g. using property setters/getters instead of fields and utilizing the
layoutData property.

Change-Id: Ia<I>fb8a<I>a<I>f<I>f<I>f2d6de<I>fd4db