bind/on lenna

This commit is contained in:
j 2012-06-16 13:55:09 +02:00
parent 53966f3f53
commit 9d391e4c13

View file

@ -13,7 +13,7 @@ Ox.load('Image', function() {
Create some DOM elements. Create some DOM elements.
*/ */
var $body = Ox.$('body'), var $body = Ox.$('body'),
$select = Ox.$('<select>').bind({change: change}).appendTo($body), $select = Ox.$('<select>').on({change: change}).appendTo($body),
$image = Ox.$('<img>').attr({src: image.src()}).appendTo($body); $image = Ox.$('<img>').attr({src: image.src()}).appendTo($body);
[ [