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',
|
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();
|
||||||
|
|
Loading…
Reference in a new issue