mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-12 13:41:29 +00:00
Fix for issue #768
This commit is contained in:
@@ -70,7 +70,7 @@ GLOBAL(objj_class) = function(displayName)
|
||||
#if DEBUG
|
||||
// naming the allocator allows the WebKit heap snapshot tool to display object class names correctly
|
||||
// HACK: displayName property is not respected so we must eval a function to name it
|
||||
this.allocator = eval("(function " + (displayName || "OBJJ_OBJECT").replace(/\W/g, "_") + "() { })");
|
||||
eval("this.allocator = function " + (displayName || "OBJJ_OBJECT").replace(/\W/g, "_") + "() { }");
|
||||
#else
|
||||
this.allocator = function() { };
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user