Skip to content

Commit

Permalink
Merge pull request #17 from FuzzicalLogic/master
Browse files Browse the repository at this point in the history
Fix: default selector value
  • Loading branch information
FuzzicalLogic authored Feb 6, 2019
2 parents d18619f + f460972 commit 84384ea
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cogizmo/sajax-content",
"version": "0.4.0",
"version": "0.4.1",
"description": "Custom Element that invokes an element's method when a specified event is received.",
"main": "src/component.js",
"scripts": {
Expand Down
5 changes: 3 additions & 2 deletions src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
}

get select() {
return _PROPS_.get(this).select;
let v = _PROPS_.get(this).select;
return !!v ? v : '*';
}

set select(value) {
Expand Down Expand Up @@ -134,7 +135,7 @@
}

onSelectChanged(newValue, oldValue) {
_PROPS_.get(this).select = !!newValue ? newValue : 'body > *';
this.select = newValue;
}

isTimeToRequest(newValue, oldValue) {
Expand Down
2 changes: 1 addition & 1 deletion src/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cogizmo/sajax-content",
"version": "0.4.0",
"version": "0.4.1",
"description": "Custom element that transcludes HTML content into the current HTMLDocument.",
"main": "component.mjs",
"scripts": {
Expand Down

0 comments on commit 84384ea

Please sign in to comment.