@@ -14,7 +14,7 @@ if (typeof document.getAttribute == $undefined)
14
14
* @param {string } string String to be converted to lowercase.
15
15
* @returns {string } Lowercased string.
16
16
*/
17
- var lowercase = function ( string ) { return isString ( string ) ? string . toLowerCase ( ) : string ; } ;
17
+ var lowercase = function ( string ) { return isString ( string ) ? string . toLowerCase ( ) : string ; } ;
18
18
19
19
20
20
/**
@@ -26,17 +26,17 @@ var lowercase = function(string){ return isString(string) ? string.toLowerCase()
26
26
* @param {string } string String to be converted to uppercase.
27
27
* @returns {string } Uppercased string.
28
28
*/
29
- var uppercase = function ( string ) { return isString ( string ) ? string . toUpperCase ( ) : string ; } ;
29
+ var uppercase = function ( string ) { return isString ( string ) ? string . toUpperCase ( ) : string ; } ;
30
30
31
31
32
32
var manualLowercase = function ( s ) {
33
33
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 ) ; } )
35
35
: s ;
36
36
} ;
37
37
var manualUppercase = function ( s ) {
38
38
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 ) ; } )
40
40
: s ;
41
41
} ;
42
42
@@ -49,12 +49,12 @@ if ('i' !== 'I'.toLowerCase()) {
49
49
uppercase = manualUppercase ;
50
50
}
51
51
52
- function fromCharCode ( code ) { return String . fromCharCode ( code ) ; }
52
+ function fromCharCode ( code ) { return String . fromCharCode ( code ) ; }
53
53
54
54
/**
55
55
* 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
58
58
* unknown elements. See regression/issue-584.html.
59
59
*
60
60
* @param {string } elementName Name of the widget.
@@ -295,7 +295,7 @@ function noop() {}
295
295
function identity ( $ ) { return $ ; }
296
296
297
297
298
- function valueFn ( value ) { return function ( ) { return value ; } ; }
298
+ function valueFn ( value ) { return function ( ) { return value ; } ; }
299
299
300
300
function extensionMap ( angular , name , transform ) {
301
301
var extPoint ;
@@ -319,7 +319,7 @@ function extensionMap(angular, name, transform) {
319
319
* @param {* } value Reference to check.
320
320
* @returns {boolean } True if `value` is undefined.
321
321
*/
322
- function isUndefined ( value ) { return typeof value == $undefined ; }
322
+ function isUndefined ( value ) { return typeof value == $undefined ; }
323
323
324
324
325
325
/**
@@ -333,7 +333,7 @@ function isUndefined(value){ return typeof value == $undefined; }
333
333
* @param {* } value Reference to check.
334
334
* @returns {boolean } True if `value` is defined.
335
335
*/
336
- function isDefined ( value ) { return typeof value != $undefined ; }
336
+ function isDefined ( value ) { return typeof value != $undefined ; }
337
337
338
338
339
339
/**
@@ -348,7 +348,7 @@ function isDefined(value){ return typeof value != $undefined; }
348
348
* @param {* } value Reference to check.
349
349
* @returns {boolean } True if `value` is an `Object` but not `null`.
350
350
*/
351
- function isObject ( value ) { return value != null && typeof value == $object ; }
351
+ function isObject ( value ) { return value != null && typeof value == $object ; }
352
352
353
353
354
354
/**
@@ -362,7 +362,7 @@ function isObject(value){ return value!=null && typeof value == $object;}
362
362
* @param {* } value Reference to check.
363
363
* @returns {boolean } True if `value` is a `String`.
364
364
*/
365
- function isString ( value ) { return typeof value == $string ; }
365
+ function isString ( value ) { return typeof value == $string ; }
366
366
367
367
368
368
/**
@@ -376,7 +376,7 @@ function isString(value){ return typeof value == $string;}
376
376
* @param {* } value Reference to check.
377
377
* @returns {boolean } True if `value` is a `Number`.
378
378
*/
379
- function isNumber ( value ) { return typeof value == $number ; }
379
+ function isNumber ( value ) { return typeof value == $number ; }
380
380
381
381
382
382
/**
@@ -390,7 +390,7 @@ function isNumber(value){ return typeof value == $number;}
390
390
* @param {* } value Reference to check.
391
391
* @returns {boolean } True if `value` is a `Date`.
392
392
*/
393
- function isDate ( value ) { return value instanceof Date ; }
393
+ function isDate ( value ) { return value instanceof Date ; }
394
394
395
395
396
396
/**
@@ -404,7 +404,7 @@ function isDate(value){ return value instanceof Date; }
404
404
* @param {* } value Reference to check.
405
405
* @returns {boolean } True if `value` is an `Array`.
406
406
*/
407
- function isArray ( value ) { return value instanceof Array ; }
407
+ function isArray ( value ) { return value instanceof Array ; }
408
408
409
409
410
410
/**
@@ -418,7 +418,7 @@ function isArray(value) { return value instanceof Array; }
418
418
* @param {* } value Reference to check.
419
419
* @returns {boolean } True if `value` is a `Function`.
420
420
*/
421
- function isFunction ( value ) { return typeof value == 'function' ; }
421
+ function isFunction ( value ) { return typeof value == 'function' ; }
422
422
423
423
424
424
/**
@@ -432,8 +432,8 @@ function isWindow(obj) {
432
432
return obj && obj . document && obj . location && obj . alert && obj . setInterval ;
433
433
}
434
434
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' ; }
437
437
438
438
function trim ( value ) {
439
439
return isString ( value ) ? value . replace ( / ^ \s * / , '' ) . replace ( / \s * $ / , '' ) : value ;
0 commit comments