Privatize Window

This commit is contained in:
Tim Taubert 2014-10-13 00:06:48 +02:00
parent 8825296869
commit da7590d108
9 changed files with 57 additions and 25 deletions

View file

@ -83,7 +83,7 @@ impl<'a> GlobalRef<'a> {
/// thread.
pub fn script_chan<'b>(&'b self) -> &'b ScriptChan {
match *self {
Window(ref window) => &window.script_chan,
Window(ref window) => window.script_chan(),
Worker(ref worker) => worker.script_chan(),
}
}