Skip to content
This repository has been archived by the owner on Aug 24, 2018. It is now read-only.

atom-archive/custom-object

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

custom-object

Override object's methods without harmony proxy.

Installing

npm install custom-object

Building

  • Clone the repository
  • Run npm install
  • Run grunt to compile the native and CoffeeScript code
  • Run grunt test to run the specs

Usage

customObject = require 'custom-object'

customObject.createObject(handler)

Creates a new object with template set by handler.

customObject.createConstructor(constructor, handler)

Creates a function, when the returned function is being called as constructor, the passed constructor function would be used, and the created object would use hanlder as template.

About

Override object's methods without harmony proxy

Resources

License

Stars

Watchers

Forks

Packages

No packages published