Переглянути джерело

computeScrollerHeight, remove unused param

Adam Shaw 11 роки тому
батько
коміт
fb4a4ed8f1
1 змінених файлів з 2 додано та 3 видалено
  1. 2 3
      src/common/View.js

+ 2 - 3
src/common/View.js

@@ -435,13 +435,12 @@ var View = fc.View = Class.extend({
 
 
 	// Given the total height of the view, return the number of pixels that should be used for the scroller.
-	// By default, uses this.scrollerEl, but can pass this in as well.
 	// Utility for subclasses.
-	computeScrollerHeight: function(totalHeight, scrollerEl) {
+	computeScrollerHeight: function(totalHeight) {
+		var scrollerEl = this.scrollerEl;
 		var both;
 		var otherHeight; // cumulative height of everything that is not the scrollerEl in the view (header+borders)
 
-		scrollerEl = scrollerEl || this.scrollerEl;
 		both = this.el.add(scrollerEl);
 
 		// fuckin IE8/9/10/11 sometimes returns 0 for dimensions. this weird hack was the only thing that worked