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
973b3c70
Commit
973b3c70
authored
Jan 18, 2012
by
James Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing use of HTML5 data attributes to work on all browsers.
parent
f9ffdbe1
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
todo-example/dojo/js/dtk/dojo/dojo.js
todo-example/dojo/js/dtk/dojo/dojo.js
+1
-1
todo-example/dojo/js/todo/app.js
todo-example/dojo/js/todo/app.js
+4
-4
No files found.
todo-example/dojo/js/dtk/dojo/dojo.js
View file @
973b3c70
This diff is collapsed.
Click to expand it.
todo-example/dojo/js/todo/app.js
View file @
973b3c70
...
...
@@ -6,12 +6,12 @@ define(["dojo/_base/declare",
// Parent classes
"
dijit/_WidgetBase
"
,
"
dijit/_TemplatedMixin
"
,
"
dijit/_WidgetsInTemplateMixin
"
,
// General application modules
"
dojo/_base/lang
"
,
"
dojo/
on
"
,
"
dojo/dom-class
"
,
"
dojox/mvc
"
,
"
todo/model/TodoModel
"
,
"
dojo/_base/lang
"
,
"
dojo/
_base/event
"
,
"
dojo/on
"
,
"
dojo/dom-class
"
,
"
dojo/dom-attr
"
,
"
dojox/mvc
"
,
"
todo/model/TodoModel
"
,
// Widget template
"
dojo/text!./app.html
"
,
// Template Widgets
"
dijit/InlineEditBox
"
,
"
todo/form/CheckBox
"
,
"
dojox/mvc/Group
"
,
"
dojox/mvc/Repeat
"
,
"
dojox/mvc/Output
"
],
function
(
declare
,
_WidgetBase
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
,
lang
,
on
,
domClass
,
mvc
,
TodoModel
,
template
)
{
function
(
declare
,
_WidgetBase
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
,
lang
,
_event
,
on
,
domClass
,
domAttr
,
mvc
,
TodoModel
,
template
)
{
return
declare
(
"
todo.app
"
,
[
_WidgetBase
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
],
{
templateString
:
template
,
...
...
@@ -108,7 +108,7 @@ define(["dojo/_base/declare",
this
.
addToModel
(
event
.
target
.
value
,
false
);
event
.
target
.
value
=
""
;
dojo
.
stopEvent
(
event
);
_event
.
stop
(
event
);
},
/**
...
...
@@ -117,7 +117,7 @@ define(["dojo/_base/declare",
* model using the item identifier.
**/
onRemove
:
function
(
event
)
{
this
.
model
.
todos
.
remove
(
event
.
target
.
dataset
.
modelId
);
this
.
model
.
todos
.
remove
(
domAttr
.
get
(
event
.
target
,
"
data-model-id
"
)
);
}
});
});
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