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
Eugene Shen
todomvc
Commits
ee41126f
Commit
ee41126f
authored
Nov 14, 2014
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AngularJS Perf: Update to 1.3.2
parent
6a65d06f
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11079 additions
and
5900 deletions
+11079
-5900
examples/angularjs-perf/bower.json
examples/angularjs-perf/bower.json
+1
-1
examples/angularjs-perf/bower_components/angular/angular.js
examples/angularjs-perf/bower_components/angular/angular.js
+11052
-5890
examples/angularjs-perf/bower_components/todomvc-common/base.js
...es/angularjs-perf/bower_components/todomvc-common/base.js
+26
-9
No files found.
examples/angularjs-perf/bower.json
View file @
ee41126f
...
...
@@ -2,7 +2,7 @@
"name"
:
"todomvc-angular-perf"
,
"version"
:
"0.0.0"
,
"dependencies"
:
{
"angular"
:
"1.
2.9
"
,
"angular"
:
"1.
3.2
"
,
"todomvc-common"
:
"~0.3.0"
}
}
examples/angularjs-perf/bower_components/angular/angular.js
View file @
ee41126f
This diff is collapsed.
Click to expand it.
examples/angularjs-perf/bower_components/todomvc-common/base.js
View file @
ee41126f
...
...
@@ -171,25 +171,42 @@
framework
=
document
.
querySelector
(
'
[data-framework]
'
).
dataset
.
framework
;
}
this
.
template
=
template
;
if
(
template
&&
learnJSON
[
framework
])
{
if
(
learnJSON
.
backend
)
{
this
.
frameworkJSON
=
learnJSON
.
backend
;
this
.
append
({
backend
:
true
});
}
else
if
(
learnJSON
[
framework
])
{
this
.
frameworkJSON
=
learnJSON
[
framework
];
this
.
template
=
template
;
this
.
append
();
}
}
Learn
.
prototype
.
append
=
function
()
{
Learn
.
prototype
.
append
=
function
(
opts
)
{
var
aside
=
document
.
createElement
(
'
aside
'
);
aside
.
innerHTML
=
_
.
template
(
this
.
template
,
this
.
frameworkJSON
);
aside
.
className
=
'
learn
'
;
// Localize demo links
var
demoLinks
=
aside
.
querySelectorAll
(
'
.demo-link
'
);
Array
.
prototype
.
forEach
.
call
(
demoLinks
,
function
(
demoLink
)
{
demoLink
.
setAttribute
(
'
href
'
,
findRoot
()
+
demoLink
.
getAttribute
(
'
href
'
));
});
if
(
opts
&&
opts
.
backend
)
{
// Remove demo link
var
sourceLinks
=
aside
.
querySelector
(
'
.source-links
'
);
var
heading
=
sourceLinks
.
firstElementChild
;
var
sourceLink
=
sourceLinks
.
lastElementChild
;
// Correct link path
var
href
=
sourceLink
.
getAttribute
(
'
href
'
);
sourceLink
.
setAttribute
(
'
href
'
,
href
.
substr
(
href
.
lastIndexOf
(
'
http
'
)));
sourceLinks
.
innerHTML
=
heading
.
outerHTML
+
sourceLink
.
outerHTML
;
}
else
{
// Localize demo links
var
demoLinks
=
aside
.
querySelectorAll
(
'
.demo-link
'
);
Array
.
prototype
.
forEach
.
call
(
demoLinks
,
function
(
demoLink
)
{
if
(
demoLink
.
getAttribute
(
'
href
'
).
substr
(
0
,
4
)
!==
'
http
'
)
{
demoLink
.
setAttribute
(
'
href
'
,
findRoot
()
+
demoLink
.
getAttribute
(
'
href
'
));
}
});
}
document
.
body
.
className
=
(
document
.
body
.
className
+
'
learn-bar
'
).
trim
();
document
.
body
.
insertAdjacentHTML
(
'
afterBegin
'
,
aside
.
outerHTML
);
...
...
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