new Wrapper()
Members
-
__DSL__ :Object
-
Type:
- Object
-
__map__ :Array
-
type -- module map
Type:
- Array
Methods
-
$(obj)
-
wrap对象,非侵入
Parameters:
Name Type Description obj
Object -
$$(obj)
-
直接复制wrap modules中的成员到指定对象
Parameters:
Name Type Description obj
Object 对象 -
$clear()
-
清空wrap module表
-
$reg(module, supports, option)
-
将wrap module注册到prototype,Interface或Class
Parameters:
Name Type Argument Description module
Object supports
Object | Interface | function option
Object <optional>
-
findWrappersByType(type) → {Array}
-
根据prototype,Interface或Class查找已注册的wrap modules
Parameters:
Name Type Description type
Object | Interface | function Returns:
- Type
- Array