This commit is contained in:
Misko Hevery 2010-05-10 10:36:02 -07:00
parent 549ff73a9b
commit 4542716370
2 changed files with 3 additions and 3 deletions

View file

@ -216,7 +216,7 @@ var ngSwitch = angularWidget('NG:SWITCH', function (element){
var compiler = this,
watchExpr = element.attr("on"),
usingExpr = (element.attr("using") || 'equals'),
usingExprParams = usingExpr.split(":");
usingExprParams = usingExpr.split(":"),
usingFn = ngSwitch[usingExprParams.shift()],
changeExpr = element.attr('change') || '',
cases = [];

View file

@ -164,7 +164,7 @@ describe("service", function(){
function callback(code, response) {
expect(code).toEqual(200);
log = log + toJson(response) + ';';
};
}
beforeEach(function(){
log = '';
@ -229,7 +229,7 @@ describe("service", function(){
xhr.expectPOST('/bulk', {
requests:[{method:'GET', url:'/url', data: null}]
}).respond([
{status:200, response:'123'},
{status:200, response:'123'}
]);
cache('GET', '/url', null, callback);
cache('GET', '/url', null, callback);