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
2d8f0831
Commit
2d8f0831
authored
Dec 12, 2014
by
Pascal Hartig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Address Dojo memory leak
Also updates code style for the affected file only. Fixes #1086 Closes #1087
parent
d2bfd1d8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
examples/dojo/js/todo/TodoList.js
examples/dojo/js/todo/TodoList.js
+13
-12
No files found.
examples/dojo/js/todo/TodoList.js
View file @
2d8f0831
define
([
define
([
"
dojo/_base/declare
"
,
'
dojo/_base/declare
'
,
"
dijit/_TemplatedMixin
"
,
'
dijit/_TemplatedMixin
'
,
"
dijit/_WidgetsInTemplateMixin
"
,
'
dijit/_WidgetsInTemplateMixin
'
,
"
dojox/mvc/WidgetList
"
,
'
dojox/mvc/WidgetList
'
,
"
dojox/mvc/_InlineTemplateMixin
"
,
'
dojox/mvc/_InlineTemplateMixin
'
,
"
todo/CssToggleWidget
"
,
'
todo/CssToggleWidget
'
,
"
todo/ctrl/_HashCompletedMixin
"
'
todo/ctrl/_HashCompletedMixin
'
],
function
(
declare
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
,
WidgetList
,
_InlineTemplateMixin
,
CssToggleWidget
,
_HashCompletedMixin
){
],
function
(
declare
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
,
WidgetList
,
_InlineTemplateMixin
,
CssToggleWidget
,
_HashCompletedMixin
){
return
declare
([
WidgetList
,
_InlineTemplateMixin
],
{
return
declare
([
WidgetList
,
_InlineTemplateMixin
],
{
childClz
:
declare
([
CssToggleWidget
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
,
_HashCompletedMixin
],
{
childClz
:
declare
([
CssToggleWidget
,
_TemplatedMixin
,
_WidgetsInTemplateMixin
,
_HashCompletedMixin
],
{
_setCompletedAttr
:
{
type
:
"
classExists
"
,
className
:
"
completed
"
},
_setCompletedAttr
:
{
type
:
'
classExists
'
,
className
:
'
completed
'
},
_setHiddenAttr
:
{
type
:
"
classExists
"
,
className
:
"
hidden
"
},
_setHiddenAttr
:
{
type
:
'
classExists
'
,
className
:
'
hidden
'
},
onRemoveClick
:
function
()
{
onRemoveClick
:
function
()
{
this
.
parent
.
listCtrl
.
removeItem
(
this
.
uniqueId
);
this
.
parent
.
listCtrl
.
removeItem
(
this
.
uniqueId
);
this
.
destroyRecursive
();
},
},
onEditBoxChange
:
function
()
{
onEditBoxChange
:
function
()
{
if
(
!
this
.
editBox
.
value
)
{
if
(
!
this
.
editBox
.
value
)
{
this
.
parent
.
listCtrl
.
removeItem
(
this
.
uniqueId
);
this
.
parent
.
listCtrl
.
removeItem
(
this
.
uniqueId
);
}
}
}
}
...
...
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