Merge "jquery.textSelection: re-add iframe check due to regression"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 28 Jul 2014 21:30:35 +0000 (21:30 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 28 Jul 2014 21:30:35 +0000 (21:30 +0000)
resources/src/jquery/jquery.textSelection.js

index e5444eb..289cd22 100644 (file)
                }
 
                context = $( this ).data( 'wikiEditor-context' );
-               hasWikiEditorSurface = ( context !== undefined );
+               hasWikiEditorSurface = ( context !== undefined && context.$iframe !== undefined );
 
                // IE selection restore voodoo
                needSave = false;