mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-25 14:46:10 +03:00
fix: setting contacts to 0 if below 0
This commit is contained in:
parent
eeeccff1ba
commit
576a0f9c33
@ -1400,8 +1400,10 @@
|
||||
* @function
|
||||
*/
|
||||
removeContact: function() {
|
||||
if ( this.contacts > 0 ) {
|
||||
--this.contacts;
|
||||
--this.contacts;
|
||||
|
||||
if (this.contacts < 0) {
|
||||
this.contacts = 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user