This website works better with JavaScript.
Home
Explore
Help
Sign In
jrtechs
/
jrtechs-vis
mirror of
https://github.com/jrtechs/vis.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
82
Wiki
Activity
Browse Source
Moved `emit('_change'...)` from Timeline.setItems to ItemSet.setItems to be consistend with ItemSet.setGroups
codeClimate
jos
8 years ago
parent
dee98d8565
commit
717f1f148b
2 changed files
with
2 additions
and
3 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+0
-3
lib/timeline/Timeline.js
+2
-0
lib/timeline/component/ItemSet.js
+ 0
- 3
lib/timeline/Timeline.js
View File
@ -237,9 +237,6 @@ Timeline.prototype.setItems = function(items) {
// set items
this
.
itemsData
=
newDataSet
;
this
.
itemSet
&&
this
.
itemSet
.
setItems
(
newDataSet
)
;
this
.
body
.
emitter
.
emit
(
'_change'
,
{
queue
:
true
}
)
;
}
;
/
*
*
+ 2
- 0
lib/timeline/component/ItemSet.js
View File
@ -726,6 +726,8 @@ ItemSet.prototype.setItems = function(items) {
// update the group holding all ungrouped items
this
.
_updateUngrouped
(
)
;
}
this
.
body
.
emitter
.
emit
(
'_change'
,
{
queue
:
true
}
)
;
}
;
/
*
*
Write
Preview
Loading…
Cancel
Save