File tree 4 files changed +2
-6
lines changed
4 files changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -889,7 +889,6 @@ Shows or hides the time axis timestamp labels.
889
889
890
890
The ` options ` object can be used to set the the height of the time axis markers on the top and bottom of the waveform.
891
891
892
-
893
892
The initial setting is controlled by the ` showAxisLabels ` configuration option
894
893
(default: ` true ` ) and the ` axisTopMarkerHeight ` and ` axisBottomMarkerHeight ` options (default: 10).
895
894
Original file line number Diff line number Diff line change @@ -426,7 +426,6 @@ declare module 'peaks.js' {
426
426
}
427
427
428
428
interface InstanceEvents {
429
- 'peaks.ready' : ( ) => void ;
430
429
'points.add' : ( event : PointsAddEvent ) => void ;
431
430
'points.click' : ( event : PointClickEvent ) => void ;
432
431
'points.dblclick' : ( event : PointClickEvent ) => void ;
Original file line number Diff line number Diff line change @@ -446,8 +446,6 @@ Peaks.init = function(opts, callback) {
446
446
. catch ( function ( err ) {
447
447
callback ( err ) ;
448
448
} ) ;
449
-
450
- return instance ;
451
449
} ;
452
450
453
451
Peaks . prototype . _setOptions = function ( opts ) {
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ describe('Peaks', function() {
67
67
} ) ;
68
68
} ) ;
69
69
70
- it ( 'should return the peaks instance ' , function ( done ) {
70
+ it ( 'should return undefined ' , function ( done ) {
71
71
const result = Peaks . init ( {
72
72
overview : {
73
73
container : document . getElementById ( 'overview-container' )
@@ -81,7 +81,7 @@ describe('Peaks', function() {
81
81
function ( err , instance ) {
82
82
expect ( err ) . to . equal ( null ) ;
83
83
expect ( instance ) . to . be . an . instanceOf ( Peaks ) ;
84
- expect ( result ) . to . equal ( instance ) ;
84
+ expect ( result ) . to . equal ( undefined ) ;
85
85
instance . destroy ( ) ;
86
86
done ( ) ;
87
87
} ) ;
You can’t perform that action at this time.
0 commit comments