From ff26bb5671d78ac56b13460eac51e3dabc59576c Mon Sep 17 00:00:00 2001 From: rolux Date: Sat, 30 Jun 2012 11:25:15 +0200 Subject: [PATCH] update design patterns example --- examples/ui/widget_design_patterns/js/example.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/ui/widget_design_patterns/js/example.js b/examples/ui/widget_design_patterns/js/example.js index d41b95b9..703a3472 100644 --- a/examples/ui/widget_design_patterns/js/example.js +++ b/examples/ui/widget_design_patterns/js/example.js @@ -631,12 +631,12 @@ Ox.load(['Image', 'UI'], function() { }) .appendTo(Ox.$body); /* - As a last step, we add a handler to the `invert` event of each widgets. It - will display the widget's name and options inside the first box. + As a last step, we add another `doubleclick` handler to each widget. It will + display the widget's name and options inside the first box. */ Ox.forEach(My, function($box, name) { $box.bindEvent({ - invert: function() { + doubleclick: function() { My.$box.displayText( '' + name[1].toUpperCase() + name.slice(2) + '
' + JSON.stringify($box.options()).replace(/([,:])/g, '$1 ')