Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
taufik-nurrohman committed Jun 9, 2024
1 parent 5011052 commit e7f248c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
7 changes: 6 additions & 1 deletion .factory/index.js.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ $$.$ = function () {
$$.attach = function (self, state) {
let $ = this;
self = self || $.self;
state = state || $.state;
if (state && (isInteger(state) || isString(state))) {
state = {
tab: state
};
}
state = fromStates({}, $.state, state || {});
if (hasClass(self, state.n + '__self')) {
return $;
}
Expand Down
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,12 @@
$$.attach = function (self, state) {
var $ = this;
self = self || $.self;
state = state || $.state;
if (state && (isInteger(state) || isString(state))) {
state = {
tab: state
};
}
state = fromStates({}, $.state, state || {});
if (hasClass(self, state.n + '__self')) {
return $;
}
Expand Down
2 changes: 1 addition & 1 deletion index.min.js

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

7 changes: 6 additions & 1 deletion index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,12 @@ $$.$ = function () {
$$.attach = function (self, state) {
let $ = this;
self = self || $.self;
state = state || $.state;
if (state && (isInteger(state) || isString(state))) {
state = {
tab: state
};
}
state = fromStates({}, $.state, state || {});
if (hasClass(self, state.n + '__self')) {
return $;
}
Expand Down

0 comments on commit e7f248c

Please sign in to comment.