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:
1 parent
42f06d5147
commit
a294fb4e8b
1 file changed
+3
-2
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user