Add manual docs for single manual function.

This commit is contained in:
Richard Dodd 2018-11-13 14:36:33 +00:00
parent c85f1b74e8
commit 4fa9865cc9

View File

@ -20,6 +20,13 @@ extern crate wasm_bindgen;
#[allow(unused_imports)]
use js_sys::Object;
/// Getter for the `Window` object
///
/// [MDN Documentation]
///
/// *This API requires the following crate features to be activated: `Window`*
///
/// [MDN Documentation]: https://developer.mozilla.org/en-US/docs/Web/API/Window
#[cfg(feature = "Window")]
pub fn window() -> Option<Window> {
use wasm_bindgen::JsCast;