Ticket #8979: 8979_3.patch
File 8979_3.patch, 1.7 KB (added by , 12 years ago) |
---|
-
_source/plugins/font/plugin.js
93 93 // the styles. 94 94 for ( var value in styles ) 95 95 { 96 if ( styles[ value ].checkElement Removable( element, true ) )96 if ( styles[ value ].checkElementMatch( element, true ) ) 97 97 { 98 98 if ( value != currentValue ) 99 99 this.setValue( value ); -
_source/plugins/styles/plugin.js
218 218 return true; 219 219 }, 220 220 221 // Checks if an element, or any of its attributes, is removable by the 222 // current style definition. 223 checkElementRemovable : function( element, fullMatch ) 221 // Check if the element matches the current style definition. 222 checkElementMatch : function( element, fullMatch ) 224 223 { 225 224 var def = this._.definition; 226 225 … … 266 265 return true; 267 266 } 268 267 269 // Check if the element can be somehow overriden. 268 return false; 269 }, 270 271 // Checks if an element, or any of its attributes, is removable by the 272 // current style definition. 273 checkElementRemovable : function( element, fullMatch ) 274 { 275 // Check element matches the style itself. 276 if ( this.checkElementMatch( element, fullMatch ) ) 277 return true; 278 279 // Check if the element matches the style overrides. 270 280 var override = getOverrides( this )[ element.getName() ] ; 271 281 if ( override ) 272 282 {