浏览代码

Copy title attribute from original element

Matthias Kurz 11 年之前
父节点
当前提交
bdb8840fb4
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      select2.js

+ 2 - 0
select2.js

@@ -694,6 +694,8 @@ the specific language governing permissions and limitations under the Apache Lic
             this.containerSelector="#"+this.containerId;
             this.container.attr("id", this.containerId);
 
+            this.container.attr("title", opts.element.attr("title"));
+
             // cache the body so future lookups are cheap
             this.body = thunk(function() { return opts.element.closest("body"); });