Rename some local variables and shorten some lines.

This was done manually, and might benefit from a more careful review.
This commit is contained in:
Bobby Holley 2013-10-09 09:53:23 +02:00
parent 622aa76515
commit 549ac6a29b
11 changed files with 25 additions and 40 deletions

View file

@ -225,9 +225,9 @@ impl Window {
};
unsafe {
let cache = ptr::to_unsafe_ptr(win.reflector());
let reflector = ptr::to_unsafe_ptr(win.reflector());
win.wrap_object_shared(cx, ptr::null()); //XXXjdm proper scope
let global = (*cache).wrapper;
let global = (*reflector).wrapper;
do "window".to_c_str().with_ref |name| {
JS_DefineProperty(cx, global, name,
RUST_OBJECT_TO_JSVAL(global),