瀏覽代碼

misc cleanup and fixes

Adam Shaw 10 年之前
父節點
當前提交
cebc3eb404
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      src/common/CoordCache.js
  2. 1 1
      src/common/HitDragListener.js

+ 1 - 1
src/common/CoordCache.js

@@ -62,7 +62,7 @@ var CoordCache = FC.CoordCache = Class.extend({
 		var scrollParentEl = getScrollParent(this.els.eq(0));
 
 		if (!scrollParentEl.is(document)) {
-			return getOuterRect(scrollParentEl);
+			return getClientRect(scrollParentEl);
 		}
 	},
 

+ 1 - 1
src/common/HitDragListener.js

@@ -17,7 +17,7 @@ var HitDragListener = DragListener.extend({
 
 
 	constructor: function(component, options) {
-		DragListener.prototype.constructor.call(this, options); // call the super-constructor
+		DragListener.call(this, options); // call the super-constructor
 
 		this.component = component;
 	},