Skip to content

Commit

Permalink
Add Wrapper.wrapObject
Browse files Browse the repository at this point in the history
  • Loading branch information
simonlindholm committed Jan 6, 2013
1 parent dcf1704 commit b335cb9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions extension/content/firebug/lib/wrapper.js
Expand Up @@ -26,6 +26,14 @@ Wrapper.unwrapObject = function(object)
return XPCNativeWrapper.unwrap(object);
};

Wrapper.wrapObject = function(object)
{
if (isPrimitive(object))
return object;

return XPCNativeWrapper(object);
};

Wrapper.unwrapIValue = function(object, viewChrome)
{
var unwrapped = object.getWrappedValue();
Expand Down

0 comments on commit b335cb9

Please sign in to comment.