Skip to content

Commit

Permalink
Merge pull request #10 from anag0/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ernestmarcinko authored Jul 1, 2023
2 parents 8df4b4e + 46e5f06 commit 2af4dee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "domini",
"version": "0.2.0",
"version": "0.2.1",
"description": "Minimalistic DOM manipulation tool",
"main": "dist/domini.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/core/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ DoMini._fn.plugin = function (name, object) {
if ( typeof(options) != 'undefined' && object[options] ) {
return object[options].apply( this, Array.prototype.slice.call( arguments, 1 ));
} else {
return this.each(function (elem) {
return this.forEach(function (elem) {
elem['domini_' + name] = Object.create(object).init(options, elem);
});
}
Expand Down

0 comments on commit 2af4dee

Please sign in to comment.