Permalink
Browse files

Import of https://codereview.appspot.com/6826076/

git-svn-id: http://closure-library.googlecode.com/svn/trunk@2283 0b95b8e8-c90f-11de-9d4f-f947ee5921c8
  • Loading branch information...
1 parent 9ba5670 commit 47f8bb915841b92b6092ff393e5f64a9f107f6e2 nnaze@google.com committed Nov 8, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 closure/goog/editor/field.js
@@ -1013,7 +1013,10 @@ goog.editor.Field.MUTATION_EVENTS_GECKO = [
* @protected
*/
goog.editor.Field.prototype.setupMutationEventHandlersGecko = function() {
- if (goog.editor.BrowserFeature.HAS_DOM_SUBTREE_MODIFIED_EVENT) {
+ // Always use DOMSubtreeModified on Gecko when not using an iframe so that
+ // DOM mutations outside the Field do not trigger handleMutationEventGecko_.
+ if (goog.editor.BrowserFeature.HAS_DOM_SUBTREE_MODIFIED_EVENT ||
+ !this.usesIframe()) {
this.eventRegister.listen(this.getElement(), 'DOMSubtreeModified',
this.handleMutationEventGecko_);
} else {

0 comments on commit 47f8bb9

Please sign in to comment.