mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-04-02 21:36:11 +03:00
fix: setting contacts to 0 if below 0
This commit is contained in:
parent
eeeccff1ba
commit
576a0f9c33
1 changed files with 4 additions and 2 deletions
|
@ -1400,8 +1400,10 @@
|
|||
* @function
|
||||
*/
|
||||
removeContact: function() {
|
||||
if ( this.contacts > 0 ) {
|
||||
--this.contacts;
|
||||
--this.contacts;
|
||||
|
||||
if (this.contacts < 0) {
|
||||
this.contacts = 0;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue