Skip to content

Commit

Permalink
Refactor clear method in DomComponents
Browse files Browse the repository at this point in the history
  • Loading branch information
artf committed Jun 3, 2018
1 parent 617c759 commit 94fe89a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dom_components/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,8 +470,7 @@ module.exports = () => {
* @return {this}
*/
clear() {
var c = this.getComponents();
for (var i = 0, len = c.length; i < len; i++) c.pop();
this.getComponents().reset();
return this;
},

Expand Down

0 comments on commit 94fe89a

Please sign in to comment.