diff options
Diffstat (limited to 'components/script/dom/audiotrack.rs')
-rw-r--r-- | components/script/dom/audiotrack.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/audiotrack.rs b/components/script/dom/audiotrack.rs index 9233b1d9c93..6a43eed64b2 100644 --- a/components/script/dom/audiotrack.rs +++ b/components/script/dom/audiotrack.rs @@ -55,6 +55,10 @@ impl AudioTrack { self.id.clone() } + pub fn kind(&self) -> DOMString { + self.kind.clone() + } + pub fn enabled(&self) -> bool { self.enabled.get() } @@ -72,7 +76,7 @@ impl AudioTrackMethods for AudioTrack { // https://html.spec.whatwg.org/multipage/#dom-audiotrack-kind fn Kind(&self) -> DOMString { - self.kind.clone() + self.kind() } // https://html.spec.whatwg.org/multipage/#dom-audiotrack-label |