Skip to content

Commit

Permalink
fix indent & name
Browse files Browse the repository at this point in the history
  • Loading branch information
ksh8281 committed Nov 14, 2013
1 parent 8db9178 commit 853bcba
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/components/script/dom/window.rs
Expand Up @@ -223,14 +223,14 @@ impl Window {

let global = WindowBinding::Wrap(cx, ptr::null(), win);
unsafe {
let fns = ["window","self"];
for str in fns.iter() {
let fn_names = ["window","self"];
for str in fn_names.iter() {
do (*str).to_c_str().with_ref |name| {
JS_DefineProperty(cx, global, name,
RUST_OBJECT_TO_JSVAL(global),
Some(GetJSClassHookStubPointer(PROPERTY_STUB) as JSPropertyOp),
Some(GetJSClassHookStubPointer(STRICT_PROPERTY_STUB) as JSStrictPropertyOp),
JSPROP_ENUMERATE);
JS_DefineProperty(cx, global, name,
RUST_OBJECT_TO_JSVAL(global),
Some(GetJSClassHookStubPointer(PROPERTY_STUB) as JSPropertyOp),
Some(GetJSClassHookStubPointer(STRICT_PROPERTY_STUB) as JSStrictPropertyOp),
JSPROP_ENUMERATE);
}

}
Expand Down

5 comments on commit 853bcba

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from jdm
at ksh8281@853bcba

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging ksh8281/servo/impl_window_self = 853bcba into auto

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ksh8281/servo/impl_window_self = 853bcba merged ok, testing candidate = 426d18f

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors-servo
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding master to auto = 426d18f

Please sign in to comment.