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
Show 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 source diff could not be displayed because it is too large. You can
view the blob
instead.
todo-example/dojo/js/todo/app.js
View file @
973b3c70
...
@@ -6,12 +6,12 @@ define(["dojo/_base/declare",
...
@@ -6,12 +6,12 @@ define(["dojo/_base/declare",
// Parent classes
// Parent classes
"
dijit/_WidgetBase
"
,
"
dijit/_TemplatedMixin
"
,
"
dijit/_WidgetsInTemplateMixin
"
,
"
dijit/_WidgetBase
"
,
"
dijit/_TemplatedMixin
"
,
"
dijit/_WidgetsInTemplateMixin
"
,
// General application modules
// 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
// Widget template
"
dojo/text!./app.html
"
,
"
dojo/text!./app.html
"
,
// Template Widgets
// Template Widgets
"
dijit/InlineEditBox
"
,
"
todo/form/CheckBox
"
,
"
dojox/mvc/Group
"
,
"
dojox/mvc/Repeat
"
,
"
dojox/mvc/Output
"
],
"
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
],
{
return
declare
(
"
todo.app
"
,
[
_WidgetBase
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
],
{
templateString
:
template
,
templateString
:
template
,
...
@@ -108,7 +108,7 @@ define(["dojo/_base/declare",
...
@@ -108,7 +108,7 @@ define(["dojo/_base/declare",
this
.
addToModel
(
event
.
target
.
value
,
false
);
this
.
addToModel
(
event
.
target
.
value
,
false
);
event
.
target
.
value
=
""
;
event
.
target
.
value
=
""
;
dojo
.
stopEvent
(
event
);
_event
.
stop
(
event
);
},
},
/**
/**
...
@@ -117,7 +117,7 @@ define(["dojo/_base/declare",
...
@@ -117,7 +117,7 @@ define(["dojo/_base/declare",
* model using the item identifier.
* model using the item identifier.
**/
**/
onRemove
:
function
(
event
)
{
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