Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
todomvc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sven Franck
todomvc
Commits
19091282
Commit
19091282
authored
Jan 21, 2015
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AngularJS: Update to 1.3.10
parent
f009cb66
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
73 additions
and
41 deletions
+73
-41
examples/angularjs/bower.json
examples/angularjs/bower.json
+3
-3
examples/angularjs/bower_components/angular-route/angular-route.js
...angularjs/bower_components/angular-route/angular-route.js
+1
-1
examples/angularjs/bower_components/angular/angular.js
examples/angularjs/bower_components/angular/angular.js
+69
-37
No files found.
examples/angularjs/bower.json
View file @
19091282
...
...
@@ -2,11 +2,11 @@
"name"
:
"todomvc-angular"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"angular"
:
"1.3.
9
"
,
"angular"
:
"1.3.
10
"
,
"todomvc-common"
:
"~0.3.0"
},
"devDependencies"
:
{
"angular-mocks"
:
"1.3.
9
"
,
"angular-route"
:
"1.3.
9
"
"angular-mocks"
:
"1.3.
10
"
,
"angular-route"
:
"1.3.
10
"
}
}
examples/angularjs/bower_components/angular-route/angular-route.js
View file @
19091282
/**
* @license AngularJS v1.3.
9
* @license AngularJS v1.3.
10
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
...
...
examples/angularjs/bower_components/angular/angular.js
View file @
19091282
/**
* @license AngularJS v1.3.
9
* @license AngularJS v1.3.
10
* (c) 2010-2014 Google, Inc. http://angularjs.org
* License: MIT
*/
...
...
@@ -54,7 +54,7 @@ function minErr(module, ErrorConstructor) {
return
match
;
});
message
=
message
+
'
\n
http://errors.angularjs.org/1.3.
9
/
'
+
message
=
message
+
'
\n
http://errors.angularjs.org/1.3.
10
/
'
+
(
module
?
module
+
'
/
'
:
''
)
+
code
;
for
(
i
=
2
;
i
<
arguments
.
length
;
i
++
)
{
message
=
message
+
(
i
==
2
?
'
?
'
:
'
&
'
)
+
'
p
'
+
(
i
-
2
)
+
'
=
'
+
...
...
@@ -1402,7 +1402,7 @@ function angularInit(element, bootstrap) {
* @param {DOMElement} element DOM element which is the root of angular application.
* @param {Array<String|Function|Array>=} modules an array of modules to load into the application.
* Each item in the array should be the name of a predefined module or a (DI annotated)
* function that will be invoked by the injector as a
run
block.
* function that will be invoked by the injector as a
`config`
block.
* See: {@link angular.module modules}
* @param {Object=} config an object for defining configuration options for the application. The
* following keys are supported:
...
...
@@ -2118,11 +2118,11 @@ function toDebugString(obj) {
* - `codeName` – `{string}` – Code name of the release, such as "jiggling-armfat".
*/
var
version
=
{
full
:
'
1.3.
9
'
,
// all of these placeholder strings will be replaced by grunt's
full
:
'
1.3.
10
'
,
// all of these placeholder strings will be replaced by grunt's
major
:
1
,
// package task
minor
:
3
,
dot
:
9
,
codeName
:
'
multidimensional-awareness
'
dot
:
10
,
codeName
:
'
heliotropic-sundial
'
};
...
...
@@ -4186,7 +4186,7 @@ function createInjector(modulesToLoad, strictDi) {
// Check if Type is annotated and use just the given function at n-1 as parameter
// e.g. someModule.factory('greeter', ['$window', function(renamed$window) {}]);
// Object creation: http://jsperf.com/create-constructor/2
var
instance
=
Object
.
create
((
isArray
(
Type
)
?
Type
[
Type
.
length
-
1
]
:
Type
).
prototype
);
var
instance
=
Object
.
create
((
isArray
(
Type
)
?
Type
[
Type
.
length
-
1
]
:
Type
).
prototype
||
null
);
var
returnedValue
=
invoke
(
Type
,
instance
,
locals
,
serviceName
);
return
isObject
(
returnedValue
)
||
isFunction
(
returnedValue
)
?
returnedValue
:
instance
;
...
...
@@ -7165,6 +7165,10 @@ function $CompileProvider($provide, $$sanitizeUriProvider) {
// use class as directive
className
=
node
.
className
;
if
(
isObject
(
className
))
{
// Maybe SVGAnimatedString
className
=
className
.
animVal
;
}
if
(
isString
(
className
)
&&
className
!==
''
)
{
while
(
match
=
CLASS_DIRECTIVE_REGEXP
.
exec
(
className
))
{
nName
=
directiveNormalize
(
match
[
2
]);
...
...
@@ -8431,7 +8435,7 @@ function $ControllerProvider() {
// Object creation: http://jsperf.com/create-constructor/2
var
controllerPrototype
=
(
isArray
(
expression
)
?
expression
[
expression
.
length
-
1
]
:
expression
).
prototype
;
instance
=
Object
.
create
(
controllerPrototype
);
instance
=
Object
.
create
(
controllerPrototype
||
null
);
if
(
identifier
)
{
addIdentifier
(
locals
,
identifier
,
instance
,
constructor
||
expression
.
name
);
...
...
@@ -14500,7 +14504,7 @@ function $RootScopeProvider() {
* @kind function
*
* @description
* Schedule the invo
k
ation of $apply to occur at a later time. The actual time difference
* Schedule the invo
c
ation of $apply to occur at a later time. The actual time difference
* varies across browsers, but is typically around ~10 milliseconds.
*
* This can be used to queue up multiple expressions which need to be evaluated in the same
...
...
@@ -16010,8 +16014,7 @@ var $compileMinErr = minErr('$compile');
function
$TemplateRequestProvider
()
{
this
.
$get
=
[
'
$templateCache
'
,
'
$http
'
,
'
$q
'
,
function
(
$templateCache
,
$http
,
$q
)
{
function
handleRequestFn
(
tpl
,
ignoreRequestError
)
{
var
self
=
handleRequestFn
;
self
.
totalPendingRequests
++
;
handleRequestFn
.
totalPendingRequests
++
;
var
transformResponse
=
$http
.
defaults
&&
$http
.
defaults
.
transformResponse
;
...
...
@@ -16029,13 +16032,14 @@ function $TemplateRequestProvider() {
};
return
$http
.
get
(
tpl
,
httpOptions
)
.
finally
(
function
()
{
handleRequestFn
.
totalPendingRequests
--
;
})
.
then
(
function
(
response
)
{
self
.
totalPendingRequests
--
;
return
response
.
data
;
},
handleError
);
function
handleError
(
resp
)
{
self
.
totalPendingRequests
--
;
if
(
!
ignoreRequestError
)
{
throw
$compileMinErr
(
'
tpload
'
,
'
Failed to load template: {0}
'
,
tpl
);
}
...
...
@@ -17125,7 +17129,7 @@ var DATE_FORMATS_SPLIT = /((?:[^yMdHhmsaZEw']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|d
* * `'m'`: Minute in hour (0-59)
* * `'ss'`: Second in minute, padded (00-59)
* * `'s'`: Second in minute (0-59)
* * `'
.sss' or ',
sss'`: Millisecond in second, padded (000-999)
* * `'sss'`: Millisecond in second, padded (000-999)
* * `'a'`: AM/PM marker
* * `'Z'`: 4 digit (+sign) representation of the timezone offset (-1200-+1200)
* * `'ww'`: Week of year, padded (00-53). Week 01 is the week with the first Thursday of the year
...
...
@@ -18261,6 +18265,9 @@ function FormController(element, attrs, $scope, $animate, $interpolate) {
forEach
(
form
.
$error
,
function
(
value
,
name
)
{
form
.
$setValidity
(
name
,
null
,
control
);
});
forEach
(
form
.
$$success
,
function
(
value
,
name
)
{
form
.
$setValidity
(
name
,
null
,
control
);
});
arrayRemove
(
controls
,
control
);
};
...
...
@@ -18278,23 +18285,23 @@ function FormController(element, attrs, $scope, $animate, $interpolate) {
addSetValidityMethod
({
ctrl
:
this
,
$element
:
element
,
set
:
function
(
object
,
property
,
control
)
{
set
:
function
(
object
,
property
,
control
ler
)
{
var
list
=
object
[
property
];
if
(
!
list
)
{
object
[
property
]
=
[
control
];
object
[
property
]
=
[
control
ler
];
}
else
{
var
index
=
list
.
indexOf
(
control
);
var
index
=
list
.
indexOf
(
control
ler
);
if
(
index
===
-
1
)
{
list
.
push
(
control
);
list
.
push
(
control
ler
);
}
}
},
unset
:
function
(
object
,
property
,
control
)
{
unset
:
function
(
object
,
property
,
control
ler
)
{
var
list
=
object
[
property
];
if
(
!
list
)
{
return
;
}
arrayRemove
(
list
,
control
);
arrayRemove
(
list
,
control
ler
);
if
(
list
.
length
===
0
)
{
delete
object
[
property
];
}
...
...
@@ -20639,8 +20646,9 @@ function classDirective(name, selector) {
* new classes are added.
*
* @animations
* add - happens just before the class is applied to the element
* remove - happens just before the class is removed from the element
* **add** - happens just before the class is applied to the elements
*
* **remove** - happens just before the class is removed from the element
*
* @element ANY
* @param {expression} ngClass {@link guide/expression Expression} to eval. The result
...
...
@@ -22106,7 +22114,7 @@ var ngIfDirective = ['$animate', function($animate) {
* @name ngInclude#$includeContentError
* @eventType emit on the scope ngInclude was declared in
* @description
* Emitted when a template HTTP request yields an erronous response (status < 200 || status > 299)
* Emitted when a template HTTP request yields an erron
e
ous response (status < 200 || status > 299)
*
* @param {Object} angularEvent Synthetic event object.
* @param {String} src URL of content to load.
...
...
@@ -23663,22 +23671,22 @@ function addSetValidityMethod(context) {
ctrl
.
$setValidity
=
setValidity
;
function
setValidity
(
validationErrorKey
,
state
,
options
)
{
function
setValidity
(
validationErrorKey
,
state
,
controller
)
{
if
(
state
===
undefined
)
{
createAndSet
(
'
$pending
'
,
validationErrorKey
,
options
);
createAndSet
(
'
$pending
'
,
validationErrorKey
,
controller
);
}
else
{
unsetAndCleanup
(
'
$pending
'
,
validationErrorKey
,
options
);
unsetAndCleanup
(
'
$pending
'
,
validationErrorKey
,
controller
);
}
if
(
!
isBoolean
(
state
))
{
unset
(
ctrl
.
$error
,
validationErrorKey
,
options
);
unset
(
ctrl
.
$$success
,
validationErrorKey
,
options
);
unset
(
ctrl
.
$error
,
validationErrorKey
,
controller
);
unset
(
ctrl
.
$$success
,
validationErrorKey
,
controller
);
}
else
{
if
(
state
)
{
unset
(
ctrl
.
$error
,
validationErrorKey
,
options
);
set
(
ctrl
.
$$success
,
validationErrorKey
,
options
);
unset
(
ctrl
.
$error
,
validationErrorKey
,
controller
);
set
(
ctrl
.
$$success
,
validationErrorKey
,
controller
);
}
else
{
set
(
ctrl
.
$error
,
validationErrorKey
,
options
);
unset
(
ctrl
.
$$success
,
validationErrorKey
,
options
);
set
(
ctrl
.
$error
,
validationErrorKey
,
controller
);
unset
(
ctrl
.
$$success
,
validationErrorKey
,
controller
);
}
}
if
(
ctrl
.
$pending
)
{
...
...
@@ -23706,20 +23714,21 @@ function addSetValidityMethod(context) {
}
else
{
combinedState
=
null
;
}
toggleValidationCss
(
validationErrorKey
,
combinedState
);
parentForm
.
$setValidity
(
validationErrorKey
,
combinedState
,
ctrl
);
}
function
createAndSet
(
name
,
value
,
options
)
{
function
createAndSet
(
name
,
value
,
controller
)
{
if
(
!
ctrl
[
name
])
{
ctrl
[
name
]
=
{};
}
set
(
ctrl
[
name
],
value
,
options
);
set
(
ctrl
[
name
],
value
,
controller
);
}
function
unsetAndCleanup
(
name
,
value
,
options
)
{
function
unsetAndCleanup
(
name
,
value
,
controller
)
{
if
(
ctrl
[
name
])
{
unset
(
ctrl
[
name
],
value
,
options
);
unset
(
ctrl
[
name
],
value
,
controller
);
}
if
(
isObjectEmpty
(
ctrl
[
name
]))
{
ctrl
[
name
]
=
undefined
;
...
...
@@ -24038,6 +24047,29 @@ var ngPluralizeDirective = ['$locale', '$interpolate', function($locale, $interp
* Creating aliases for these properties is possible with {@link ng.directive:ngInit `ngInit`}.
* This may be useful when, for instance, nesting ngRepeats.
*
* # Iterating over object properties
*
* It is possible to get `ngRepeat` to iterate over the properties of an object using the following
* syntax:
*
* ```js
* <div ng-repeat="(key, value) in myObj"> ... </div>
* ```
*
* You need to be aware that the JavaScript specification does not define what order
* it will return the keys for an object. In order to have a guaranteed deterministic order
* for the keys, Angular versions up to and including 1.3 **sort the keys alphabetically**.
*
* If this is not desired, the recommended workaround is to convert your object into an array
* that is sorted into the order that you prefer before providing it to `ngRepeat`. You could
* do this with a filter such as [toArrayFilter](http://ngmodules.org/modules/angular-toArrayFilter)
* or implement a `$watch` on the object yourself.
*
* In version 1.4 we will remove the sorting, since it seems that browsers generally follow the
* strategy of providing keys in the order in which they were defined, although there are exceptions
* when keys are deleted and reinstated.
*
*
* # Special repeat start and end points
* To repeat a series of elements instead of just one parent element, ngRepeat (as well as other ng directives) supports extending
* the range of the repeater by defining explicit start and end points by using **ng-repeat-start** and **ng-repeat-end** respectively.
...
...
@@ -24282,7 +24314,7 @@ var ngRepeatDirective = ['$parse', '$animate', function($parse, $animate) {
var
keyIdentifier
=
match
[
2
];
if
(
aliasAs
&&
(
!
/^
[
$a-zA-Z_
][
$a-zA-Z0-9_
]
*$/
.
test
(
aliasAs
)
||
/^
(
null|undefined|this|
\$
index|
\$
first|
\$
middle|
\$
last|
\$
even|
\$
odd|
\$
parent
)
$/
.
test
(
aliasAs
)))
{
/^
(
null|undefined|this|
\$
index|
\$
first|
\$
middle|
\$
last|
\$
even|
\$
odd|
\$
parent
|
\$
root|
\$
id
)
$/
.
test
(
aliasAs
)))
{
throw
ngRepeatMinErr
(
'
badident
'
,
"
alias '{0}' is invalid --- must be a valid JS identifier which is not a reserved name.
"
,
aliasAs
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment