Skip to content

Commit

Permalink
chore(public): build distribution files
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierBoubert committed Oct 18, 2016
1 parent 6f9e6dc commit ae12305
Show file tree
Hide file tree
Showing 15 changed files with 48 additions and 42 deletions.
18 changes: 9 additions & 9 deletions public/context-panel/pl-context-panel.js
Expand Up @@ -17,10 +17,10 @@
usable: false
}, data),

open: function(callback, userBehavior) {
open: function(callback, userBehavior, groupToOpen) {
userBehavior = typeof userBehavior == 'undefined' || userBehavior ? true : false;

_inOpen = true;
_inOpen = groupToOpen || true;

ContextPanel.fire('beforeOpen', {
userBehavior: userBehavior
Expand All @@ -29,7 +29,7 @@
ContextPanel.set('opened', true);

setTimeout(function() {
if (!_inOpen) {
if (!ContextPanel || !_inOpen) {
return;
}

Expand All @@ -39,7 +39,7 @@
var $section = $(this);

setTimeout(function() {
if (!_inOpen) {
if (!ContextPanel || !_inOpen) {
return;
}

Expand All @@ -48,7 +48,7 @@
});

setTimeout(function() {
if (!_inOpen) {
if (!ContextPanel || !_inOpen) {
return;
}

Expand Down Expand Up @@ -82,7 +82,7 @@
var $section = $(this);

setTimeout(function() {
if (_inOpen) {
if (!ContextPanel || _inOpen) {
return;
}

Expand All @@ -91,7 +91,7 @@
});

setTimeout(function() {
if (_inOpen) {
if (!ContextPanel || _inOpen) {
return;
}

Expand Down Expand Up @@ -124,7 +124,7 @@
ContextPanel.set('opened', false);

setTimeout(function() {
if (_inOpen) {
if (!ContextPanel || _inOpen) {
return;
}

Expand Down Expand Up @@ -153,7 +153,7 @@
},

isGroupOpened: function(groupName) {
return !!this.groupOpened(groupName);
return this.groupOpened(groupName) || _inOpen === groupName;
},

closeIfGroupOpened: function(groupName) {
Expand Down
2 changes: 1 addition & 1 deletion public/context-panel/pl-context-panel.min.js

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

0 comments on commit ae12305

Please sign in to comment.