mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-17 19:11:08 +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(); });
|
forEach(pollFns, function(pollFn){ pollFn(); });
|
||||||
pollTimeout = setTimeout(check, interval);
|
pollTimeout = setTimeout(check, interval);
|
||||||
})();
|
})();
|
||||||
};
|
}
|
||||||
|
|
||||||
//////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////
|
||||||
// URL API
|
// URL API
|
||||||
|
|
|
||||||
|
|
@ -30,7 +30,7 @@ function createScope(providers, instanceCache) {
|
||||||
var scope = new Scope();
|
var scope = new Scope();
|
||||||
(scope.$service = createInjector(scope, providers, instanceCache)).eager();
|
(scope.$service = createInjector(scope, providers, instanceCache)).eager();
|
||||||
return scope;
|
return scope;
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -827,7 +827,7 @@ function hashKey(obj) {
|
||||||
} else if (key === undefined) {
|
} else if (key === undefined) {
|
||||||
key = obj.$hashKey = nextUid();
|
key = obj.$hashKey = nextUid();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
return objType + ':' + key;
|
return objType + ':' + key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -218,7 +218,7 @@ function dateStrGetter(name, shortForm) {
|
||||||
function timeZoneGetter(date) {
|
function timeZoneGetter(date) {
|
||||||
var offset = date.getTimezoneOffset();
|
var offset = date.getTimezoneOffset();
|
||||||
return padNumber(offset / 60, 2) + padNumber(Math.abs(offset % 60), 2);
|
return padNumber(offset / 60, 2) + padNumber(Math.abs(offset % 60), 2);
|
||||||
};
|
}
|
||||||
|
|
||||||
function ampmGetter(date, formats) {
|
function ampmGetter(date, formats) {
|
||||||
return date.getHours() < 12 ? formats.AMPMS[0] : formats.AMPMS[1];
|
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);
|
currentContext = context.find('#' + id);
|
||||||
});
|
});
|
||||||
return context.find('#describe-' + spec.definition.id);
|
return context.find('#describe-' + spec.definition.id);
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates the test counter for the status.
|
* 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>');
|
context.find('.test-title').append('<pre></pre>');
|
||||||
var message = _jQuery.trim(line() + '\n\n' + formatException(error));
|
var message = _jQuery.trim(line() + '\n\n' + formatException(error));
|
||||||
context.find('.test-title pre:last').text(message);
|
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']},
|
}, extend({'X-XSRF-TOKEN': $browser.cookies()['XSRF-TOKEN']},
|
||||||
xhrHeaderDefaults.common,
|
xhrHeaderDefaults.common,
|
||||||
xhrHeaderDefaults[lowercase(method)]));
|
xhrHeaderDefaults[lowercase(method)]));
|
||||||
};
|
}
|
||||||
|
|
||||||
xhr.defaults = {headers: xhrHeaderDefaults};
|
xhr.defaults = {headers: xhrHeaderDefaults};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -572,7 +572,7 @@ describe('jqLite', function(){
|
||||||
var element = jqLite('<div><span>aa</span></div><div><span>bb</span></div>');
|
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(0).html()).toBe('aa');
|
||||||
expect(element.find('span').eq(-1).html()).toBe('bb');
|
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>';
|
||||||
select = jqLite(html);
|
select = jqLite(html);
|
||||||
scope = compile(select);
|
scope = compile(select);
|
||||||
};
|
}
|
||||||
|
|
||||||
function createSingleSelect(blank, unknown){
|
function createSingleSelect(blank, unknown){
|
||||||
createSelect({
|
createSelect({
|
||||||
'name':'selected',
|
'name':'selected',
|
||||||
'ng:options':'value.name for value in values'
|
'ng:options':'value.name for value in values'
|
||||||
}, blank, unknown);
|
}, blank, unknown);
|
||||||
};
|
}
|
||||||
|
|
||||||
function createMultiSelect(blank, unknown){
|
function createMultiSelect(blank, unknown){
|
||||||
createSelect({
|
createSelect({
|
||||||
|
|
@ -604,7 +604,7 @@ describe("widget", function(){
|
||||||
'multiple':true,
|
'multiple':true,
|
||||||
'ng:options':'value.name for value in values'
|
'ng:options':'value.name for value in values'
|
||||||
}, blank, unknown);
|
}, blank, unknown);
|
||||||
};
|
}
|
||||||
|
|
||||||
afterEach(function(){
|
afterEach(function(){
|
||||||
dealoc(select);
|
dealoc(select);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue