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