This repository has been archived by the owner on Feb 11, 2022. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- $() method can now return any type of value
- Loading branch information
Showing
14 changed files
with
274 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* @isotope/core v0.1.2 | ||
* @isotope/core v0.1.3 | ||
* (c) Arek Nawo <[email protected]> (areknawo.com) | ||
* Released under the MIT License. | ||
*/ | ||
|
@@ -47,7 +47,7 @@ | |
* Executes the provided directive(s). | ||
* | ||
* @param directives - Directive(s) to be executed. | ||
* @returns - The Node. | ||
* @returns - The Node or the return value of the directive. | ||
*/ | ||
$(directives) { | ||
if (Array.isArray(directives)) { | ||
|
@@ -56,9 +56,9 @@ | |
}); | ||
} | ||
else { | ||
const node = directives(this); | ||
if (node) { | ||
return node; | ||
const value = directives(this); | ||
if (typeof value !== "undefined") { | ||
return value; | ||
} | ||
} | ||
return this; | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.