Skip to content

Commit

Permalink
fixing serious typo in findAll
Browse files Browse the repository at this point in the history
  • Loading branch information
eavichay committed May 29, 2017
1 parent e31f7cf commit 1e5c115
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ var Slim = function (_CustomElement2) {
* Best practice to call polyfill in <head> section of the HTML
* @example
* <head>
* <script src="./path/to/slim/Slim.min.js></script>
* <script src="./path/to/slim/Slim.min.js"></script>
* <script>
* Slim.polyfill('./path/to/web-components-polyfill.js');
* </script>
Expand Down Expand Up @@ -368,7 +368,7 @@ var Slim = function (_CustomElement2) {
}, {
key: 'findAll',
value: function findAll(selector) {
return Slim.selectorToArr(this.rootElemnt, selector);
return Slim.selectorToArr(this.rootElement, selector);
}
}, {
key: 'watch',
Expand Down
2 changes: 1 addition & 1 deletion Slim.min.js

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions example/stargazers/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
<meta charset="UTF-8">
<title>Stargazers Demo</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fetch/2.0.3/fetch.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/1.0.1/webcomponents-hi-ce.js"></script>
<script src="../../src/Slim.js"></script>
<script>
Slim.polyfill('https://cdnjs.cloudflare.com/ajax/libs/webcomponentsjs/0.7.24/CustomElements.min.js');
</script>
<script src="stargazers-demo.js"></script>
<script src="stargazers-item.js"></script>
</head>
Expand Down
2 changes: 1 addition & 1 deletion example/stargazers/stargazers-demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ Slim.tag('stargazers-demo',
fetch(`https://api.github.com/repos/${this.repoName}/stargazers?page=1&per_page=100`)
.then(response => response.json() )
.then(stargazers => {
this.stargazers = stargazers;
this.isLoading = false;
this.stargazers = stargazers;
});
}
});
2 changes: 1 addition & 1 deletion src/Slim.js
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Slim extends HTMLElement {

//noinspection JSUnusedGlobalSymbols
findAll(selector) {
return Slim.selectorToArr(this.rootElemnt, selector);
return Slim.selectorToArr(this.rootElement, selector);
}

watch(prop, executor) {
Expand Down

0 comments on commit 1e5c115

Please sign in to comment.