Skip to content

Commit

Permalink
Dependencies: drop "descriptor"
Browse files Browse the repository at this point in the history
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>
  • Loading branch information
rwaldron committed Apr 5, 2016
1 parent 44012be commit 5f99b89
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
13 changes: 10 additions & 3 deletions lib/pin.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
var IS_TEST_MODE = !!process.env.IS_TEST_MODE;
var Board = require("./board");
var Descriptor = require("descriptor");
var Emitter = require("events").EventEmitter;
var util = require("util");
var Collection = require("./mixins/collection");
Expand Down Expand Up @@ -62,8 +61,16 @@ function Pin(opts) {

// Create read-only "addr(address)" property
Object.defineProperties(this, {
type: new Descriptor(type),
addr: new Descriptor(addr, "!writable"),
type: {
get: function() {
return type;
}
},
addr: {
get: function() {
return addr;
}
},
value: {
get: function() {
return state.value;
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@
"dependencies": {
"chalk": "latest",
"color-convert": "~0.5.2",
"descriptor": "latest",
"ease-component": "latest",
"es6-shim": "latest",
"lodash.clonedeep": "^4.3.0",
Expand Down

0 comments on commit 5f99b89

Please sign in to comment.