fix example (use on, not bind)
This commit is contained in:
parent
bf101e5ff0
commit
48737fbe30
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue