Fix moveToCorner method

If the class was contained the old code was removing it
This commit is contained in:
paweldomas 2016-07-08 14:47:01 +02:00
parent ce5ff20d5b
commit b3e02add3d
1 changed files with 3 additions and 2 deletions

View File

@ -201,10 +201,11 @@ function _showStopRecordingPrompt (recordingType) {
*/
function moveToCorner(selector, move) {
let moveToCornerClass = "moveToCorner";
let containsClass = selector.hasClass(moveToCornerClass);
if (move && !selector.hasClass(moveToCornerClass))
if (move && !containsClass)
selector.addClass(moveToCornerClass);
else
else if (!move && containsClass)
selector.removeClass(moveToCornerClass);
}