fix example (use on, not bind)

This commit is contained in:
rolux 2012-06-11 23:49:57 +02:00
parent bf101e5ff0
commit 48737fbe30

View file

@ -339,7 +339,7 @@ Ox.load('Image', function() {
height: mapSize + 'px', height: mapSize + 'px',
backgroundImage: 'url(' + image.src() + ')' backgroundImage: 'url(' + image.src() + ')'
}) })
.bind({ .on({
click: click, click: click,
mouseover: mouseover, mouseover: mouseover,
mousemove: mousemove, mousemove: mousemove,
@ -364,7 +364,7 @@ Ox.load('Image', function() {
left: xy.x - 4 + 'px', left: xy.x - 4 + 'px',
top: xy.y - 4 + 'px' top: xy.y - 4 + 'px'
}) })
.bind({ .on({
click: function() { click: function() {
$images.forEach(function($image) { $images.forEach(function($image) {
$image.hide(); $image.hide();