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
Prevent potential null pointer error
newShading
Ludo Stellingwerff
9 years ago
parent
050bb4258d
commit
9bf7452041
1 changed files
with
3 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+3
-0
lib/DataSet.js
+ 3
- 0
lib/DataSet.js
View File
@ -241,6 +241,9 @@ DataSet.prototype.update = function (data, senderId) {
var
fieldId
=
me
.
_fieldId
;
var
addOrUpdate
=
function
(
item
)
{
if
(
!
item
)
{
return
;
}
var
id
=
item
[
fieldId
]
;
if
(
me
.
_data
[
id
]
)
{
var
oldData
=
util
.
extend
(
{
}
,
me
.
_data
[
id
]
)
;
Write
Preview
Loading…
Cancel
Save