Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 0d2399e

Browse files
author
Brian Feister
committed
Rollback whitespace changes
1 parent 03c4827 commit 0d2399e

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

dist/select.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@
158158
ctrl.selected = undefined;
159159
ctrl.open = false;
160160
ctrl.focus = false;
161-
ctrl.focusser = undefined; //Reference to input element used to handle focus events
161+
ctrl.focusser = undefined; //Reference to input element used to handle focus events
162162
ctrl.disabled = undefined; // Initialized inside uiSelect directive link function
163163
ctrl.searchEnabled = undefined; // Initialized inside uiSelect directive link function
164164
ctrl.resetSearchInput = undefined; // Initialized inside uiSelect directive link function
@@ -257,7 +257,7 @@
257257
var filteredItems = items.filter(function(i) {return ctrl.selected.indexOf(i) < 0;});
258258
setItemsFn(filteredItems);
259259
}else{
260-
setItemsFn(items);
260+
setItemsFn(items);
261261
}
262262
ctrl.ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
263263

@@ -267,7 +267,7 @@
267267
});
268268

269269
if (ctrl.multiple){
270-
//Remove already selected items
270+
//Remove already selected items
271271
$scope.$watchCollection('$select.selected', function(selectedItems){
272272
if (!selectedItems) return;
273273
var data = ctrl.parserResult.source($scope);
@@ -357,7 +357,7 @@
357357
_resetSearchInput();
358358
ctrl.open = false;
359359
$timeout(function(){
360-
ctrl.focusser[0].focus();
360+
ctrl.focusser[0].focus();
361361
},0,false);
362362
}
363363
};
@@ -427,7 +427,7 @@
427427
// Handles selected options in "multiple" mode
428428
function _handleMatchSelection(key){
429429
var caretPosition = _getCaretPosition(_searchInput[0]),
430-
length = ctrl.selected.length,
430+
length = ctrl.selected.length,
431431
// none = -1,
432432
first = 0,
433433
last = length-1,
@@ -450,7 +450,7 @@
450450
break;
451451
case KEY.RIGHT:
452452
// Open drop-down
453-
if(!~ctrl.activeMatchIndex || curr === last){
453+
if(!~ctrl.activeMatchIndex || curr === last){
454454
ctrl.activate();
455455
return false;
456456
}
@@ -473,7 +473,7 @@
473473
return curr;
474474
}
475475
else return false;
476-
}
476+
}
477477
}
478478

479479
newIndex = getNewActiveMatchIndex();
@@ -500,11 +500,11 @@
500500
if(ctrl.multiple && KEY.isHorizontalMovement(key)){
501501
processed = _handleMatchSelection(key);
502502
}
503-
503+
504504
if (!processed && (ctrl.items.length > 0 || ctrl.tagging.isActivated)) {
505505
processed = _handleDropDownSelection(key);
506506
}
507-
507+
508508
if (processed && key != KEY.TAB) {
509509
//TODO Check si el tab selecciona aun correctamente
510510
//Crear test
@@ -610,7 +610,7 @@
610610

611611
//From model --> view
612612
ngModel.$formatters.unshift(function (inputValue) {
613-
var data = $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search
613+
var data = $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search
614614
locals = {},
615615
result;
616616
if (data){
@@ -662,7 +662,7 @@
662662
if(attrs.tabindex){
663663
//tabindex might be an expression, wait until it contains the actual value before we set the focusser tabindex
664664
attrs.$observe('tabindex', function(value) {
665-
//If we are using multiple, add tabindex to the search input
665+
//If we are using multiple, add tabindex to the search input
666666
if($select.multiple){
667667
searchInput.attr("tabindex", value);
668668
} else {
@@ -717,7 +717,7 @@
717717
if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER || e.which === KEY.BACKSPACE) {
718718
return;
719719
}
720-
720+
721721
$select.activate(focusser.val()); //User pressed some regular key, so we pass it to the search input
722722
focusser.val('');
723723
scope.$digest();
@@ -857,7 +857,7 @@
857857
if (!tAttrs.repeat) throw uiSelectMinErr('repeat', "Expected 'repeat' expression.");
858858

859859
return function link(scope, element, attrs, $select, transcludeFn) {
860-
860+
861861
// var repeat = RepeatParser.parse(attrs.repeat);
862862
var groupByExp = attrs.groupBy;
863863

src/select.js

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
ctrl.selected = undefined;
151151
ctrl.open = false;
152152
ctrl.focus = false;
153-
ctrl.focusser = undefined; //Reference to input element used to handle focus events
153+
ctrl.focusser = undefined; //Reference to input element used to handle focus events
154154
ctrl.disabled = undefined; // Initialized inside uiSelect directive link function
155155
ctrl.searchEnabled = undefined; // Initialized inside uiSelect directive link function
156156
ctrl.resetSearchInput = undefined; // Initialized inside uiSelect directive link function
@@ -249,7 +249,7 @@
249249
var filteredItems = items.filter(function(i) {return ctrl.selected.indexOf(i) < 0;});
250250
setItemsFn(filteredItems);
251251
}else{
252-
setItemsFn(items);
252+
setItemsFn(items);
253253
}
254254
ctrl.ngModel.$modelValue = null; //Force scope model value and ngModel value to be out of sync to re-run formatters
255255

@@ -259,7 +259,7 @@
259259
});
260260

261261
if (ctrl.multiple){
262-
//Remove already selected items
262+
//Remove already selected items
263263
$scope.$watchCollection('$select.selected', function(selectedItems){
264264
if (!selectedItems) return;
265265
var data = ctrl.parserResult.source($scope);
@@ -349,7 +349,7 @@
349349
_resetSearchInput();
350350
ctrl.open = false;
351351
$timeout(function(){
352-
ctrl.focusser[0].focus();
352+
ctrl.focusser[0].focus();
353353
},0,false);
354354
}
355355
};
@@ -419,7 +419,7 @@
419419
// Handles selected options in "multiple" mode
420420
function _handleMatchSelection(key){
421421
var caretPosition = _getCaretPosition(_searchInput[0]),
422-
length = ctrl.selected.length,
422+
length = ctrl.selected.length,
423423
// none = -1,
424424
first = 0,
425425
last = length-1,
@@ -442,7 +442,7 @@
442442
break;
443443
case KEY.RIGHT:
444444
// Open drop-down
445-
if(!~ctrl.activeMatchIndex || curr === last){
445+
if(!~ctrl.activeMatchIndex || curr === last){
446446
ctrl.activate();
447447
return false;
448448
}
@@ -465,7 +465,7 @@
465465
return curr;
466466
}
467467
else return false;
468-
}
468+
}
469469
}
470470

471471
newIndex = getNewActiveMatchIndex();
@@ -492,11 +492,11 @@
492492
if(ctrl.multiple && KEY.isHorizontalMovement(key)){
493493
processed = _handleMatchSelection(key);
494494
}
495-
495+
496496
if (!processed && (ctrl.items.length > 0 || ctrl.tagging.isActivated)) {
497497
processed = _handleDropDownSelection(key);
498498
}
499-
499+
500500
if (processed && key != KEY.TAB) {
501501
//TODO Check si el tab selecciona aun correctamente
502502
//Crear test
@@ -602,7 +602,7 @@
602602

603603
//From model --> view
604604
ngModel.$formatters.unshift(function (inputValue) {
605-
var data = $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search
605+
var data = $select.parserResult.source (scope, { $select : {search:''}}), //Overwrite $search
606606
locals = {},
607607
result;
608608
if (data){
@@ -654,7 +654,7 @@
654654
if(attrs.tabindex){
655655
//tabindex might be an expression, wait until it contains the actual value before we set the focusser tabindex
656656
attrs.$observe('tabindex', function(value) {
657-
//If we are using multiple, add tabindex to the search input
657+
//If we are using multiple, add tabindex to the search input
658658
if($select.multiple){
659659
searchInput.attr("tabindex", value);
660660
} else {
@@ -709,7 +709,7 @@
709709
if (e.which === KEY.TAB || KEY.isControl(e) || KEY.isFunctionKey(e) || e.which === KEY.ESC || e.which == KEY.ENTER || e.which === KEY.BACKSPACE) {
710710
return;
711711
}
712-
712+
713713
$select.activate(focusser.val()); //User pressed some regular key, so we pass it to the search input
714714
focusser.val('');
715715
scope.$digest();
@@ -849,7 +849,7 @@
849849
if (!tAttrs.repeat) throw uiSelectMinErr('repeat', "Expected 'repeat' expression.");
850850

851851
return function link(scope, element, attrs, $select, transcludeFn) {
852-
852+
853853
// var repeat = RepeatParser.parse(attrs.repeat);
854854
var groupByExp = attrs.groupBy;
855855

0 commit comments

Comments
 (0)