mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-19 16:10:22 +00:00
style(*): remove extra semicolons
This commit is contained in:
parent
035ad72726
commit
2bbef363e4
8 changed files with 11 additions and 11 deletions
|
|
@ -188,7 +188,7 @@ function Browser(window, document, body, XHR, $log) {
|
|||
forEach(pollFns, function(pollFn){ pollFn(); });
|
||||
pollTimeout = setTimeout(check, interval);
|
||||
})();
|
||||
};
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////
|
||||
// URL API
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ function createScope(providers, instanceCache) {
|
|||
var scope = new Scope();
|
||||
(scope.$service = createInjector(scope, providers, instanceCache)).eager();
|
||||
return scope;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -827,7 +827,7 @@ function hashKey(obj) {
|
|||
} else if (key === undefined) {
|
||||
key = obj.$hashKey = nextUid();
|
||||
}
|
||||
};
|
||||
}
|
||||
return objType + ':' + key;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -218,7 +218,7 @@ function dateStrGetter(name, shortForm) {
|
|||
function timeZoneGetter(date) {
|
||||
var offset = date.getTimezoneOffset();
|
||||
return padNumber(offset / 60, 2) + padNumber(Math.abs(offset % 60), 2);
|
||||
};
|
||||
}
|
||||
|
||||
function ampmGetter(date, formats) {
|
||||
return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];
|
||||
|
|
|
|||
|
|
@ -142,7 +142,7 @@ angular.scenario.output('html', function(context, runner, model) {
|
|||
currentContext = context.find('#' + id);
|
||||
});
|
||||
return context.find('#describe-' + spec.definition.id);
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates the test counter for the status.
|
||||
|
|
@ -167,5 +167,5 @@ angular.scenario.output('html', function(context, runner, model) {
|
|||
context.find('.test-title').append('<pre></pre>');
|
||||
var message = _jQuery.trim(line() + '\n\n' + formatException(error));
|
||||
context.find('.test-title pre:last').text(message);
|
||||
};
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -221,7 +221,7 @@ angularServiceInject('$xhr', function($browser, $error, $log){
|
|||
}, extend({'X-XSRF-TOKEN': $browser.cookies()['XSRF-TOKEN']},
|
||||
xhrHeaderDefaults.common,
|
||||
xhrHeaderDefaults[lowercase(method)]));
|
||||
};
|
||||
}
|
||||
|
||||
xhr.defaults = {headers: xhrHeaderDefaults};
|
||||
|
||||
|
|
|
|||
|
|
@ -572,7 +572,7 @@ describe('jqLite', function(){
|
|||
var element = jqLite('<div><span>aa</span></div><div><span>bb</span></div>');
|
||||
expect(element.find('span').eq(0).html()).toBe('aa');
|
||||
expect(element.find('span').eq(-1).html()).toBe('bb');
|
||||
expect(element.find('span').eq(20).length).toBe(0);;
|
||||
expect(element.find('span').eq(20).length).toBe(0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
|
|||
|
|
@ -589,14 +589,14 @@ describe("widget", function(){
|
|||
'</select>';
|
||||
select = jqLite(html);
|
||||
scope = compile(select);
|
||||
};
|
||||
}
|
||||
|
||||
function createSingleSelect(blank, unknown){
|
||||
createSelect({
|
||||
'name':'selected',
|
||||
'ng:options':'value.name for value in values'
|
||||
}, blank, unknown);
|
||||
};
|
||||
}
|
||||
|
||||
function createMultiSelect(blank, unknown){
|
||||
createSelect({
|
||||
|
|
@ -604,7 +604,7 @@ describe("widget", function(){
|
|||
'multiple':true,
|
||||
'ng:options':'value.name for value in values'
|
||||
}, blank, unknown);
|
||||
};
|
||||
}
|
||||
|
||||
afterEach(function(){
|
||||
dealoc(select);
|
||||
|
|
|
|||
Loading…
Reference in a new issue