Permalink
Browse files

Share no-op function

  • Loading branch information...
1 parent 81fcabe commit f034c08e0244f8d0218ca95a17fde2f572a3c897 Jason Johnston committed Jul 24, 2011
Showing with 6 additions and 4 deletions.
  1. +3 −1 sources/PIE_open.js
  2. +3 −3 sources/RootRenderer.js
View
@@ -25,7 +25,9 @@ if( !PIE ) {
'OPTION':1,
'IMG':1,
'HR':1
- }
+ },
+
+ emptyFn: function() {}
};
// Force the background cache to be used. No reason it shouldn't be.
@@ -64,9 +64,7 @@ PIE.RootRenderer = PIE.RendererBase.newRenderer( {
}
},
- updateSize: function() {
- // NO-OP
- },
+ updateSize: PIE.emptyFn,
updateVisibility: function() {
var vis = this.styleInfos.visibilityInfo.getProps();
@@ -100,6 +98,8 @@ PIE.RootRenderer = PIE.RendererBase.newRenderer( {
return box;
},
+ finishUpdate: PIE.emptyFn,
+
destroy: function() {
var box = this._box, par;
if( box && ( par = box.parentNode ) ) {

0 comments on commit f034c08

Please sign in to comment.