Patch for the js warnings referred to in #966
This commit is contained in:
parent
6e632d02a0
commit
294e7fc2db
2 changed files with 4 additions and 9 deletions
|
|
@ -726,8 +726,9 @@
|
|||
selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
|
||||
}
|
||||
|
||||
$parent = $(selector)
|
||||
$parent.length || ($parent = $this.parent())
|
||||
$parent = selector && (selector != "#") && $(selector)
|
||||
|
||||
if (!$parent || !$parent.length) $parent = $this.parent()
|
||||
|
||||
return $parent
|
||||
}
|
||||
|
|
@ -2156,4 +2157,4 @@
|
|||
})
|
||||
|
||||
|
||||
}(window.jQuery);
|
||||
}(window.jQuery);
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue