Use a namespace for the jquery event so it will be less likely to stomp
on another event handler that may be added elsewhere.
This commit is contained in:
parent
42f06d5147
commit
a294fb4e8b
1 changed files with 3 additions and 2 deletions
|
|
@ -402,9 +402,10 @@ $(function() {
|
|||
if (webcamImage.width() > 0) {
|
||||
$("#webcam_rotator").css("height", webcamImage.width());
|
||||
} else {
|
||||
webcamImage.on("load", function() {
|
||||
webcamImage.off("load.rotator");
|
||||
webcamImage.on("load.rotator", function() {
|
||||
$("#webcam_rotator").css("height", webcamImage.width());
|
||||
webcamImage.off("load");
|
||||
webcamImage.off("load.rotator");
|
||||
});
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue