Skip to content

Commit

Permalink
Commented reset code. Relates to #91
Browse files Browse the repository at this point in the history
  • Loading branch information
Wildhoney committed Oct 9, 2015
1 parent 6b0420f commit ea768ca
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions components/Droplet.js
Expand Up @@ -232,7 +232,7 @@
* @property options
* @type {Object}
*/
options: {},
options: { ...DEFAULT_OPTIONS },

/**
* @property hooks
Expand All @@ -259,17 +259,19 @@
init() {

set(this, 'files', []);
set(this, 'hooks', {});

Object.keys(DEFAULT_OPTIONS).forEach(key => {

// Copy across all of the options into the options map.
set(this, `options.${key}`, DEFAULT_OPTIONS[key]);

});

set(this, 'options.requestHeaders', {});
set(this, 'options.requestPostData', {});

//set(this, 'hooks', {});
//
//Object.keys(DEFAULT_OPTIONS).forEach(key => {
//
// // Copy across all of the options into the options map.
// set(this, `options.${key}`, DEFAULT_OPTIONS[key]);
//
//});
//
//set(this, 'options.requestHeaders', {});
//set(this, 'options.requestPostData', {});
//

this.DropletEventBus && this.DropletEventBus.subscribe(EVENT_NAME, this, (...files) => {
this.send('prepareFiles', ...files);
Expand Down Expand Up @@ -863,6 +865,7 @@
* @type {Array}
*/
attributeBindings: ['disabled', 'name', 'type', 'multiple'],
attributeBindings: ['disabled', 'name', 'type', 'multiple'],

/**
* @property file
Expand Down

0 comments on commit ea768ca

Please sign in to comment.