diff options
author | Felix Nagel <info@felixnagel.com> | 2017-08-26 13:08:14 +0200 |
---|---|---|
committer | Felix Nagel <info@felixnagel.com> | 2017-08-26 13:08:14 +0200 |
commit | 1b885ff76899fb70cce28371968d314ea74b7d7a (patch) | |
tree | 1a3a19be9d874f9daffd1238950c073ec086ffc2 /ui/labels.js | |
parent | 2b611bad90fa6f19e3bf02912c6cd5c08903c993 (diff) | |
parent | 74f8a0ac952f6f45f773312292baef1c26d81300 (diff) | |
download | jquery-ui-datepicker.tar.gz jquery-ui-datepicker.zip |
Merge branch 'master' into datepickerdatepicker
# Conflicts:
# ui/i18n/datepicker-pt.js
Diffstat (limited to 'ui/labels.js')
-rw-r--r-- | ui/labels.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/labels.js b/ui/labels.js index 2a78d886b..1bf56ac41 100644 --- a/ui/labels.js +++ b/ui/labels.js @@ -27,6 +27,10 @@ return $.fn.labels = function() { var ancestor, selector, id, labels, ancestors; + if ( !this.length ) { + return this.pushStack( [] ); + } + // Check control.labels first if ( this[ 0 ].labels && this[ 0 ].labels.length ) { return this.pushStack( this[ 0 ].labels ); |