Skip to content

Commit

Permalink
added Akili.options.ignoredTags
Browse files Browse the repository at this point in the history
  • Loading branch information
ortexx committed May 11, 2018
1 parent 4e9bac0 commit 4728aec
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions dist/akili.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/akili.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "akili",
"version": "0.7.2",
"version": "0.7.3",
"description": "Akili - javascript framework",
"main": "./src/akili.js",
"author": {
Expand Down
5 changes: 3 additions & 2 deletions src/akili.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ Akili.__defaults = [];
*/
Akili.setDefaults = function () {
this.options = {
debug: true
debug: true,
ignoredTags: ['globals.utils']
};

this.__init = null;
Expand Down Expand Up @@ -775,7 +776,7 @@ Akili.wrapFunction = function (fn, options = {}) {
}

const akiliWrappedFunction = function () {
if(options.tag && Akili.__evaluation) {
if(options.tag && Akili.__evaluation && Akili.options.ignoredTags.indexOf(options.tag) == -1) {
Akili.__evaluation.component.__addTag(options.tag, Akili.__evaluation.node);
}

Expand Down

0 comments on commit 4728aec

Please sign in to comment.