From 48737fbe3085236532077031e3dd69b35606f481 Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 11 Jun 2012 23:49:57 +0200 Subject: [PATCH] fix example (use on, not bind) --- examples/manhattan_grid/js/example.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/manhattan_grid/js/example.js b/examples/manhattan_grid/js/example.js index 4835d997..50b0e732 100644 --- a/examples/manhattan_grid/js/example.js +++ b/examples/manhattan_grid/js/example.js @@ -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();