浏览代码

Merge pull request #3946 from manuel-alvarez-alvarez/master

Add the decorator parameter to the handlers for the attach and detach of the dropdown
Kevin Brown 9 年之前
父节点
当前提交
8763a87779
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/js/select2/dropdown/attachBody.js

+ 4 - 2
src/js/select2/dropdown/attachBody.js

@@ -80,7 +80,8 @@ define([
     this.$dropdownContainer.detach();
     this.$dropdownContainer.detach();
   };
   };
 
 
-  AttachBody.prototype._attachPositioningHandler = function (container) {
+  AttachBody.prototype._attachPositioningHandler =
+      function (decorated, container) {
     var self = this;
     var self = this;
 
 
     var scrollEvent = 'scroll.select2.' + container.id;
     var scrollEvent = 'scroll.select2.' + container.id;
@@ -107,7 +108,8 @@ define([
     });
     });
   };
   };
 
 
-  AttachBody.prototype._detachPositioningHandler = function (container) {
+  AttachBody.prototype._detachPositioningHandler =
+      function (decorated, container) {
     var scrollEvent = 'scroll.select2.' + container.id;
     var scrollEvent = 'scroll.select2.' + container.id;
     var resizeEvent = 'resize.select2.' + container.id;
     var resizeEvent = 'resize.select2.' + container.id;
     var orientationEvent = 'orientationchange.select2.' + container.id;
     var orientationEvent = 'orientationchange.select2.' + container.id;