style(*): remove unused variables
This commit is contained in:
committed by
Martin Staffa
parent
4ef0c7bac0
commit
ac35b416fb
+1
-1
@@ -819,7 +819,7 @@ function copy(source, destination) {
|
||||
|
||||
function copyRecurse(source, destination) {
|
||||
var h = destination.$$hashKey;
|
||||
var result, key;
|
||||
var key;
|
||||
if (isArray(source)) {
|
||||
for (var i = 0, ii = source.length; i < ii; i++) {
|
||||
destination.push(copyElement(source[i]));
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
*/
|
||||
function Browser(window, document, $log, $sniffer) {
|
||||
var self = this,
|
||||
rawDocument = document[0],
|
||||
location = window.location,
|
||||
history = window.history,
|
||||
setTimeout = window.setTimeout,
|
||||
|
||||
@@ -1114,7 +1114,7 @@ function baseInputType(scope, element, attr, ctrl, $sniffer, $browser) {
|
||||
if (!$sniffer.android) {
|
||||
var composing = false;
|
||||
|
||||
element.on('compositionstart', function(data) {
|
||||
element.on('compositionstart', function() {
|
||||
composing = true;
|
||||
});
|
||||
|
||||
|
||||
@@ -644,7 +644,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
|
||||
setValidity(name, undefined);
|
||||
validatorPromises.push(promise.then(function() {
|
||||
setValidity(name, true);
|
||||
}, function(error) {
|
||||
}, function() {
|
||||
allValid = false;
|
||||
setValidity(name, false);
|
||||
}));
|
||||
@@ -1118,7 +1118,7 @@ var ngModelDirective = ['$rootScope', function($rootScope) {
|
||||
});
|
||||
}
|
||||
|
||||
element.on('blur', function(ev) {
|
||||
element.on('blur', function() {
|
||||
if (modelCtrl.$touched) return;
|
||||
|
||||
if ($rootScope.$$phase) {
|
||||
|
||||
@@ -20,7 +20,7 @@ function chromeHack(optionElement) {
|
||||
* added `<option>` elements, perhaps by an `ngRepeat` directive.
|
||||
*/
|
||||
var SelectController =
|
||||
['$element', '$scope', '$attrs', function($element, $scope, $attrs) {
|
||||
['$element', '$scope', function($element, $scope) {
|
||||
|
||||
var self = this,
|
||||
optionsMap = new HashMap();
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ function $HttpParamSerializerProvider() {
|
||||
forEachSorted(params, function(value, key) {
|
||||
if (value === null || isUndefined(value)) return;
|
||||
if (isArray(value)) {
|
||||
forEach(value, function(v, k) {
|
||||
forEach(value, function(v) {
|
||||
parts.push(encodeUriQuery(key) + '=' + encodeUriQuery(serializeValue(v)));
|
||||
});
|
||||
} else {
|
||||
|
||||
+1
-1
@@ -1449,7 +1449,7 @@ ASTInterpreter.prototype = {
|
||||
return context ? {value: locals} : locals;
|
||||
};
|
||||
case AST.NGValueParameter:
|
||||
return function(scope, locals, assign, inputs) {
|
||||
return function(scope, locals, assign) {
|
||||
return context ? {value: assign} : assign;
|
||||
};
|
||||
}
|
||||
|
||||
+1
-1
@@ -750,7 +750,7 @@ function $RootScopeProvider() {
|
||||
dirty, ttl = TTL,
|
||||
next, current, target = this,
|
||||
watchLog = [],
|
||||
logIdx, logMsg, asyncTask;
|
||||
logIdx, asyncTask;
|
||||
|
||||
beginPhase('$digest');
|
||||
// Check for changes to browser url that happened in sync before the call to $digest
|
||||
|
||||
Reference in New Issue
Block a user