filter out attribute events for YXmlFragment
This commit is contained in:
		
							parent
							
								
									d59e30b239
								
							
						
					
					
						commit
						9298903bdb
					
				@ -163,7 +163,7 @@ export default class YXmlFragment extends YArray {
 | 
				
			|||||||
              case 'attributes':
 | 
					              case 'attributes':
 | 
				
			||||||
                let name = mutation.attributeName
 | 
					                let name = mutation.attributeName
 | 
				
			||||||
                // check if filter accepts attribute
 | 
					                // check if filter accepts attribute
 | 
				
			||||||
                if (this._domFilter(dom, [name]).length > 0) {
 | 
					                if (this._domFilter(dom, [name]).length > 0 && this.constructor !== YXmlFragment) {
 | 
				
			||||||
                  var val = dom.getAttribute(name)
 | 
					                  var val = dom.getAttribute(name)
 | 
				
			||||||
                  if (yxml.getAttribute(name) !== val) {
 | 
					                  if (yxml.getAttribute(name) !== val) {
 | 
				
			||||||
                    if (val == null) {
 | 
					                    if (val == null) {
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user