Pārlūkot izejas kodu

fix some mistakes

Adam Shaw 8 gadi atpakaļ
vecāks
revīzija
970b868d05
1 mainītis faili ar 3 papildinājumiem un 3 dzēšanām
  1. 3 3
      src/Calendar.render.js

+ 3 - 3
src/Calendar.render.js

@@ -34,7 +34,7 @@ Calendar.mixin({
 			var viewType = gotoOptions.type;
 
 			// property like "navLinkDayClick". might be a string or a function
-			var customAction = this.view.opt('navLink' + capitaliseFirstLetter(viewType) + 'Click');
+			var customAction = _this.view.opt('navLink' + capitaliseFirstLetter(viewType) + 'Click');
 
 			if (typeof customAction === 'function') {
 				customAction(date, ev);
@@ -233,13 +233,13 @@ Calendar.mixin({
 			this.suggestedViewHeight = contentHeightInput;
 		}
 		else if (typeof contentHeightInput === 'function') { // exists and is a function
-			this.suggestedViewHeight = this.contentHeightInput();
+			this.suggestedViewHeight = contentHeightInput();
 		}
 		else if (typeof heightInput === 'number') { // exists and not 'auto'
 			this.suggestedViewHeight = heightInput - this.queryToolbarsHeight();
 		}
 		else if (typeof heightInput === 'function') { // exists and is a function
-			this.suggestedViewHeight = this.heightInput() - this.queryToolbarsHeight();
+			this.suggestedViewHeight = heightInput() - this.queryToolbarsHeight();
 		}
 		else if (heightInput === 'parent') { // set to height of parent element
 			this.suggestedViewHeight = this.el.parent().height() - this.queryToolbarsHeight();