Rename CreateDOMGlobal to create_dom_global.

This commit is contained in:
Ms2ger 2015-01-29 19:15:04 +01:00
parent d0627a2592
commit d752cdc44f
2 changed files with 4 additions and 3 deletions

View file

@ -560,7 +560,8 @@ pub fn has_property_on_prototype(cx: *mut JSContext, proxy: *mut JSObject,
}
/// Create a DOM global object with the given class.
pub fn CreateDOMGlobal(cx: *mut JSContext, class: *const JSClass) -> *mut JSObject {
pub fn create_dom_global(cx: *mut JSContext, class: *const JSClass)
-> *mut JSObject {
unsafe {
let obj = JS_NewGlobalObject(cx, class, ptr::null_mut());
if obj.is_null() {