-------------------------------- -- @module Ref -- @parent_module cc -------------------------------- -- Releases the ownership immediately.
-- This decrements the Ref's reference count.
-- If the reference count reaches 0 after the descrement, this Ref is
-- destructed.
-- see retain, autorelease
-- js NA -- @function [parent=#Ref] release -- @param self -------------------------------- -- Retains the ownership.
-- This increases the Ref's reference count.
-- see release, autorelease
-- js NA -- @function [parent=#Ref] retain -- @param self -------------------------------- -- Returns the Ref's current reference count.
-- returns The Ref's reference count.
-- js NA -- @function [parent=#Ref] getReferenceCount -- @param self -- @return unsigned int#unsigned int ret (return value: unsigned int) return nil