fix indent & name

This commit is contained in:
sh8281.kim 2013-11-14 13:44:02 +09:00
parent 8db917849a
commit 853bcba0d1

View file

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