Merge pull request #1217 from fanatid/fix/writeable

fix typo: defineProperty.writeable
This commit is contained in:
Braydon Fuller 2015-05-13 09:22:56 -04:00
commit beeb294e45
5 changed files with 1 additions and 7 deletions

View File

@ -277,7 +277,7 @@ Block.prototype._getHash = function() {
var idProperty = {
configurable: false,
writeable: false,
enumerable: true,
/**
* @returns {string} - The big endian hash buffer of the header
*/

View File

@ -233,7 +233,6 @@ BlockHeader.prototype._getHash = function hash() {
var idProperty = {
configurable: false,
writeable: false,
enumerable: true,
/**
* @returns {string} - The big endian hash buffer of the header

View File

@ -27,7 +27,6 @@ Input.DEFAULT_SEQNUMBER = DEFAULT_SEQNUMBER;
Object.defineProperty(Input.prototype, 'script', {
configurable: false,
writeable: false,
enumerable: true,
get: function() {
if (this.isNull()) {

View File

@ -26,7 +26,6 @@ function Output(params) {
Object.defineProperty(Output.prototype, 'script', {
configurable: false,
writeable: false,
enumerable: true,
get: function() {
if (!this._script) {
@ -46,7 +45,6 @@ Object.defineProperty(Output.prototype, 'script', {
Object.defineProperty(Output.prototype, 'satoshis', {
configurable: false,
writeable: true,
enumerable: true,
get: function() {
return this._satoshis;

View File

@ -99,7 +99,6 @@ Transaction.shallowCopy = function(transaction) {
var hashProperty = {
configurable: false,
writeable: false,
enumerable: true,
get: function() {
return new BufferReader(this._getHash()).readReverse().toString('hex');
@ -110,7 +109,6 @@ Object.defineProperty(Transaction.prototype, 'id', hashProperty);
var ioProperty = {
configurable: false,
writeable: false,
enumerable: true,
get: function() {
return this._getInputAmount();