Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function instanceObject(name, type, data){
- var toInstance = hash[type][name];
- if( toInstance !== false ){
- console.log('toInstance...', util.inspect( toInstance, null, 0 ));
- /*log:
- toInstance... { name: 'default',
- id: 'default',
- type: 'player',
- vars: [Object],
- events: [Object],
- options: [],
- size: 1972,
- json: [Object] }
- */
- var instance = Object.create( toInstance );
- /*log:
- instance... {}
- */
- console.log('instance...', util.inspect( instance, null, 0 ));
- return instance;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement