Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit af7c51e

Browse files
committed
style(Angular.js): various code style fixes
1 parent 25d1822 commit af7c51e

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

src/Angular.js

+18-18
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ if (typeof document.getAttribute == $undefined)
1414
* @param {string} string String to be converted to lowercase.
1515
* @returns {string} Lowercased string.
1616
*/
17-
var lowercase = function(string){ return isString(string) ? string.toLowerCase() : string; };
17+
var lowercase = function(string){return isString(string) ? string.toLowerCase() : string;};
1818

1919

2020
/**
@@ -26,17 +26,17 @@ var lowercase = function(string){ return isString(string) ? string.toLowerCase()
2626
* @param {string} string String to be converted to uppercase.
2727
* @returns {string} Uppercased string.
2828
*/
29-
var uppercase = function(string){ return isString(string) ? string.toUpperCase() : string; };
29+
var uppercase = function(string){return isString(string) ? string.toUpperCase() : string;};
3030

3131

3232
var manualLowercase = function(s) {
3333
return isString(s)
34-
? s.replace(/[A-Z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) | 32); })
34+
? s.replace(/[A-Z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) | 32);})
3535
: s;
3636
};
3737
var manualUppercase = function(s) {
3838
return isString(s)
39-
? s.replace(/[a-z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) & ~32); })
39+
? s.replace(/[a-z]/g, function(ch) {return fromCharCode(ch.charCodeAt(0) & ~32);})
4040
: s;
4141
};
4242

@@ -49,12 +49,12 @@ if ('i' !== 'I'.toLowerCase()) {
4949
uppercase = manualUppercase;
5050
}
5151

52-
function fromCharCode(code) { return String.fromCharCode(code); }
52+
function fromCharCode(code) {return String.fromCharCode(code);}
5353

5454
/**
5555
* Creates the element for IE8 and below to allow styling of widgets
56-
* (http://ejohn.org/blog/html5-shiv/). This hack works only if angular is
57-
* included synchronously at the top of the document before IE sees any
56+
* (http://ejohn.org/blog/html5-shiv/). This hack works only if angular is
57+
* included synchronously at the top of the document before IE sees any
5858
* unknown elements. See regression/issue-584.html.
5959
*
6060
* @param {string} elementName Name of the widget.
@@ -295,7 +295,7 @@ function noop() {}
295295
function identity($) {return $;}
296296

297297

298-
function valueFn(value) {return function() { return value; };}
298+
function valueFn(value) {return function() {return value;};}
299299

300300
function extensionMap(angular, name, transform) {
301301
var extPoint;
@@ -319,7 +319,7 @@ function extensionMap(angular, name, transform) {
319319
* @param {*} value Reference to check.
320320
* @returns {boolean} True if `value` is undefined.
321321
*/
322-
function isUndefined(value){ return typeof value == $undefined; }
322+
function isUndefined(value){return typeof value == $undefined;}
323323

324324

325325
/**
@@ -333,7 +333,7 @@ function isUndefined(value){ return typeof value == $undefined; }
333333
* @param {*} value Reference to check.
334334
* @returns {boolean} True if `value` is defined.
335335
*/
336-
function isDefined(value){ return typeof value != $undefined; }
336+
function isDefined(value){return typeof value != $undefined;}
337337

338338

339339
/**
@@ -348,7 +348,7 @@ function isDefined(value){ return typeof value != $undefined; }
348348
* @param {*} value Reference to check.
349349
* @returns {boolean} True if `value` is an `Object` but not `null`.
350350
*/
351-
function isObject(value){ return value!=null && typeof value == $object;}
351+
function isObject(value){return value!=null && typeof value == $object;}
352352

353353

354354
/**
@@ -362,7 +362,7 @@ function isObject(value){ return value!=null && typeof value == $object;}
362362
* @param {*} value Reference to check.
363363
* @returns {boolean} True if `value` is a `String`.
364364
*/
365-
function isString(value){ return typeof value == $string;}
365+
function isString(value){return typeof value == $string;}
366366

367367

368368
/**
@@ -376,7 +376,7 @@ function isString(value){ return typeof value == $string;}
376376
* @param {*} value Reference to check.
377377
* @returns {boolean} True if `value` is a `Number`.
378378
*/
379-
function isNumber(value){ return typeof value == $number;}
379+
function isNumber(value){return typeof value == $number;}
380380

381381

382382
/**
@@ -390,7 +390,7 @@ function isNumber(value){ return typeof value == $number;}
390390
* @param {*} value Reference to check.
391391
* @returns {boolean} True if `value` is a `Date`.
392392
*/
393-
function isDate(value){ return value instanceof Date; }
393+
function isDate(value){return value instanceof Date;}
394394

395395

396396
/**
@@ -404,7 +404,7 @@ function isDate(value){ return value instanceof Date; }
404404
* @param {*} value Reference to check.
405405
* @returns {boolean} True if `value` is an `Array`.
406406
*/
407-
function isArray(value) { return value instanceof Array; }
407+
function isArray(value) {return value instanceof Array;}
408408

409409

410410
/**
@@ -418,7 +418,7 @@ function isArray(value) { return value instanceof Array; }
418418
* @param {*} value Reference to check.
419419
* @returns {boolean} True if `value` is a `Function`.
420420
*/
421-
function isFunction(value){ return typeof value == 'function';}
421+
function isFunction(value){return typeof value == 'function';}
422422

423423

424424
/**
@@ -432,8 +432,8 @@ function isWindow(obj) {
432432
return obj && obj.document && obj.location && obj.alert && obj.setInterval;
433433
}
434434

435-
function isBoolean(value) { return typeof value == $boolean; }
436-
function isTextNode(node) { return nodeName_(node) == '#text'; }
435+
function isBoolean(value) {return typeof value == $boolean;}
436+
function isTextNode(node) {return nodeName_(node) == '#text';}
437437

438438
function trim(value) {
439439
return isString(value) ? value.replace(/^\s*/, '').replace(/\s*$/, '') : value;

0 commit comments

Comments
 (0)