Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: tvrzna/nunjs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.0.4
Choose a base ref
...
head repository: tvrzna/nunjs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 4 commits
  • 2 files changed
  • 1 contributor

Commits on Nov 11, 2021

  1. Version bump

    tvrzna committed Nov 11, 2021

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    ef6ed40 View commit details
  2. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    d0b7086 View commit details

Commits on Jul 20, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    9026190 View commit details
  2. Revert "Code cleanup to save some little bit of space."

    This reverts commit 9026190.
    tvrzna committed Jul 20, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    Copy the full SHA
    0943161 View commit details
Showing with 9 additions and 4 deletions.
  1. +7 −2 nunjs.js
  2. +2 −2 nunjs.min.js
9 changes: 7 additions & 2 deletions nunjs.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
nunjs 0.0.4
nunjs 0.0.5
https://github.com/tvrzna/nunjs
@@ -34,6 +34,10 @@ Nunjs = {
if (matchesSelector) return matchesSelector.call(obj, selector);
return false;
},
removeWithChildren : function (i, el) {
$(el).find('*').each(Nunjs.removeWithChildren);
$(el).remove();
},
'_events' : {}
};

@@ -53,7 +57,7 @@ window.$ = function(selector) {
}

var nunjs = {
nunjs: '0.0.4',
nunjs: '0.0.5',
addClass: function(name) {
this.each(function() {
if (!this.classList.contains(name)) {
@@ -142,6 +146,7 @@ window.$ = function(selector) {
if (content === undefined) {
return this[0].innerHTML;
}
this.find('*').each(Nunjs.removeWithChildren);
this.each(function() {
this.innerHTML = content;
});
4 changes: 2 additions & 2 deletions nunjs.min.js

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