Skip to content

Commit 51dcc6c

Browse files
jbedardNarretz
authored andcommitted
style(*): remove unused variables
1 parent 4fed66d commit 51dcc6c

File tree

8 files changed

+8
-9
lines changed

8 files changed

+8
-9
lines changed

src/Angular.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,7 @@ function copy(source, destination) {
819819

820820
function copyRecurse(source, destination) {
821821
var h = destination.$$hashKey;
822-
var result, key;
822+
var key;
823823
if (isArray(source)) {
824824
for (var i = 0, ii = source.length; i < ii; i++) {
825825
destination.push(copyElement(source[i]));

src/ng/browser.js

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
*/
2525
function Browser(window, document, $log, $sniffer) {
2626
var self = this,
27-
rawDocument = document[0],
2827
location = window.location,
2928
history = window.history,
3029
setTimeout = window.setTimeout,

src/ng/directive/input.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,7 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
11081108
if (!$sniffer.android) {
11091109
var composing = false;
11101110

1111-
element.on('compositionstart', function(data) {
1111+
element.on('compositionstart', function() {
11121112
composing = true;
11131113
});
11141114

src/ng/directive/ngModel.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
644644
setValidity(name, undefined);
645645
validatorPromises.push(promise.then(function() {
646646
setValidity(name, true);
647-
}, function(error) {
647+
}, function() {
648648
allValid = false;
649649
setValidity(name, false);
650650
}));
@@ -1118,7 +1118,7 @@ var ngModelDirective = ['$rootScope', function($rootScope) {
11181118
});
11191119
}
11201120

1121-
element.on('blur', function(ev) {
1121+
element.on('blur', function() {
11221122
if (modelCtrl.$touched) return;
11231123

11241124
if ($rootScope.$$phase) {

src/ng/directive/select.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function chromeHack(optionElement) {
2020
* added `<option>` elements, perhaps by an `ngRepeat` directive.
2121
*/
2222
var SelectController =
23-
['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
23+
['$element', '$scope', function($element, $scope) {
2424

2525
var self = this,
2626
optionsMap = new HashMap();

src/ng/http.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function $HttpParamSerializerProvider() {
4747
forEachSorted(params, function(value, key) {
4848
if (value === null || isUndefined(value)) return;
4949
if (isArray(value)) {
50-
forEach(value, function(v, k) {
50+
forEach(value, function(v) {
5151
parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v)));
5252
});
5353
} else {

src/ng/parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ ASTInterpreter.prototype = {
14551455
return context ? {value: locals} : locals;
14561456
};
14571457
case AST.NGValueParameter:
1458-
return function(scope, locals, assign, inputs) {
1458+
return function(scope, locals, assign) {
14591459
return context ? {value: assign} : assign;
14601460
};
14611461
}

src/ng/rootScope.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,7 @@ function $RootScopeProvider() {
750750
dirty, ttl = TTL,
751751
next, current, target = this,
752752
watchLog = [],
753-
logIdx, logMsg, asyncTask;
753+
logIdx, asyncTask;
754754

755755
beginPhase('$digest');
756756
// Check for changes to browser url that happened in sync before the call to $digest

0 commit comments

Comments
 (0)