Skip to content

Instantly share code, notes, and snippets.

@thetristan
Forked from mcculloughsean/index.js
Created June 3, 2013 18:29
Show Gist options
  • Save thetristan/5700209 to your computer and use it in GitHub Desktop.
Save thetristan/5700209 to your computer and use it in GitHub Desktop.
var bh = require('bulk-hogan');
bh.baseDirectory = 'foo';
var bh2 = { prototype: bh };
console.log(bh.baseDirectory, bh2.baseDirectory);
bh2.baseDirectory = 'bar';
console.log(bh.baseDirectory, bh2.baseDirectory);
var bh = require('bulk-hogan');
bh.baseDirectory = 'foo';
var bh2 = Object.create(bh)
console.log(bh.baseDirectory, bh2.baseDirectory);
bh2.baseDirectory = 'bar';
console.log(bh.baseDirectory, bh2.baseDirectory);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment