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:
Mark Walker 2015-05-27 23:11:33 -07:00
parent 42f06d5147
commit a294fb4e8b

View file

@ -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 {