1
0
mirror of synced 2025-02-04 06:09:23 +03:00

escape special characters in containerId selector

This commit is contained in:
TedLiang 2012-08-18 16:42:59 +10:00
parent 881d2fabd3
commit 3276e22ab6

View File

@ -942,7 +942,7 @@
*/
// abstract
opening: function() {
var cid = this.containerId, selector = "#"+ cid,
var cid = this.containerId, selector = "#"+ cid.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g, '\\$1'),
scroll = "scroll." + cid, resize = "resize." + cid;
this.container.parents().each(function() {