Merge "Fixes bug where next/prev would exit fullscreen mode"

This commit is contained in:
jenkins-bot 2014-01-28 22:39:29 +00:00 committed by Gerrit Code Review
commit fe846f3063

View file

@ -106,6 +106,12 @@
* @param {string} [parentId] parent id where we want to attach the UI. Mainly for testing.
*/
LIP.attach = function ( parentId ) {
// Re-appending the same content can have nasty side-effects
// Such as the browser leaving fullscreen mode if the fullscreened element is part of it
if ( this.currentlyAttached ) {
return;
}
var parent = $( parentId || document.body );
parent