Browse Source

fix documentation: properties.nodes doesn't exist, it's properties.items

codeClimate
Dean Attali 8 years ago
committed by Alexander Wunschik
parent
commit
412a503f42
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/timeline/index.html

+ 2
- 2
docs/timeline/index.html View File

@ -1314,7 +1314,7 @@ document.getElementById('myTimeline').onclick = function (event) {
<pre class="prettyprint lang-js"> <pre class="prettyprint lang-js">
timeline.on('select', function (properties) { timeline.on('select', function (properties) {
alert('selected items: ' + properties.nodes);
alert('selected items: ' + properties.items);
}); });
</pre> </pre>
@ -1324,7 +1324,7 @@ timeline.on('select', function (properties) {
<pre class="prettyprint lang-js"> <pre class="prettyprint lang-js">
function onSelect (properties) { function onSelect (properties) {
alert('selected items: ' + properties.nodes);
alert('selected items: ' + properties.items);
} }
// add event listener // add event listener

Loading…
Cancel
Save