This repository was archived by the owner on Oct 2, 2019. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 55
55
*
56
56
* jqLite find() is limited to lookups by tag name.
57
57
* TODO This will change with future versions of AngularJS, to be removed when this happens
58
- 5 *
58
+ *
59
59
* See jqLite.find - why not use querySelectorAll? https://github.com/angular/angular.js/issues/3586
60
60
* See feat(jqLite): use querySelectorAll instead of getElementsByTagName in jqLite.find https://github.com/angular/angular.js/pull/3598
61
61
*/
349
349
if ( ctrl . taggingLabel === false ) {
350
350
if ( ctrl . activeIndex < 0 ) {
351
351
item = ctrl . tagging . fct !== undefined ? ctrl . tagging . fct ( ctrl . search ) : ctrl . search ;
352
- if ( ! angular . equals ( ctrl . items [ 0 ] , item ) ) {
353
- item = item ;
354
- } else {
352
+ if ( angular . equals ( ctrl . items [ 0 ] , item ) ) {
355
353
return ;
356
354
}
357
355
} else {
366
364
// for `item` if it is a detected duplicate
367
365
if ( item === undefined ) return ;
368
366
// create new item on the fly
369
- if ( ctrl . taggingLabel && ctrl . taggingLabel . length > 0 ) { }
370
367
item = ctrl . tagging . fct !== undefined ? ctrl . tagging . fct ( ctrl . search ) : item . replace ( ctrl . taggingLabel , '' ) ;
371
368
}
372
369
}
You can’t perform that action at this time.
0 commit comments