diff options
| author | shadlaws <shad@shadlaws.com> | 2013-03-11 17:16:20 +0100 | 
|---|---|---|
| committer | shadlaws <shad@shadlaws.com> | 2013-03-11 17:16:20 +0100 | 
| commit | 2e94edab5396d53b1b09b6b1415d1f66d6f16de5 (patch) | |
| tree | 0bd25769ecb9e0dd7003775b17fb55a0d11c6318 /themes/wind/views | |
| parent | 4d631a4cad515984fd202fbaa124b6a01f156379 (diff) | |
#2053 - Change all .bind() to .on() for jQuery future-proofing.
- on/off are preferred to bind/unbind, live/die, and delegate/undelegate in jQuery 1.7+
- they're likely on the road toward deprecation, so let's replace them now.
Diffstat (limited to 'themes/wind/views')
| -rw-r--r-- | themes/wind/views/photo.html.php | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/themes/wind/views/photo.html.php b/themes/wind/views/photo.html.php index b42ab987..1fab71e1 100644 --- a/themes/wind/views/photo.html.php +++ b/themes/wind/views/photo.html.php @@ -12,7 +12,7 @@      // After the image is rotated or replaced we have to reload the image dimensions      // so that the full size view isn't distorted. -    $("#g-photo").bind("gallery.change", function() { +    $("#g-photo").on("gallery.change", function() {        $.ajax({          url: "<?= url::site("items/dimensions/" . $theme->item()->id) ?>",          dataType: "json", | 
