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
cb8ae28e
Commit
cb8ae28e
authored
Nov 18, 2012
by
Addy Osmani
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #333 from passy/gh-pages
Fix r.js minification for angular_require
parents
e19c80f2
e50ebed2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
labs/dependency-examples/angularjs_require/js/app.js
labs/dependency-examples/angularjs_require/js/app.js
+1
-1
labs/dependency-examples/angularjs_require/js/directives/todoFocus.js
...ncy-examples/angularjs_require/js/directives/todoFocus.js
+2
-2
No files found.
labs/dependency-examples/angularjs_require/js/app.js
View file @
cb8ae28e
'
use strict
'
;
define
([
],
function
(
)
{
define
([
'
angular
'
],
function
(
angular
)
{
return
angular
.
module
(
'
todomvc
'
,
[]);
});
labs/dependency-examples/angularjs_require/js/directives/todoFocus.js
View file @
cb8ae28e
...
...
@@ -3,7 +3,7 @@
* Directive that places focus on the element it is applied to when the expression it binds to evaluates to true.
*/
define
([
'
app
'
],
function
(
app
)
{
app
.
directive
(
'
todoFocus
'
,
function
(
$timeout
)
{
app
.
directive
(
'
todoFocus
'
,
[
'
$timeout
'
,
function
(
$timeout
)
{
return
function
(
scope
,
elem
,
attrs
)
{
scope
.
$watch
(
attrs
.
todoFocus
,
function
(
newval
)
{
if
(
newval
)
{
...
...
@@ -13,5 +13,5 @@ define(['app'], function ( app ) {
}
});
};
});
}
]
);
});
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