Skip to content
This repository has been archived by the owner on Apr 3, 2022. It is now read-only.

Commit

Permalink
Remove unnecessary semicolons, add minified file
Browse files Browse the repository at this point in the history
  • Loading branch information
pkrp committed Feb 25, 2016
1 parent ce15840 commit 32a345d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion dist/cytoscape-actionbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,13 @@
$actionbar = $("<div class='" + options.actionbarClass + "'></div>");
$actionbar.appendTo($(cy.container()));
$.each(options.items, function(itemIndex, element) {
var $element, clazz;
var $condition, $element, clazz;
clazz = options.actionItemClass + ' icon ' + element.icon;
$element = $("<span id='action-" + itemIndex + "' class='" + clazz + "' title='" + element.tooltip + "'></span>");
if (element.condition) {
$condition = $(element.condition);
$element = $condition.append($element);
}
$actionbar.append($element);
return $element.on('click', function() {
return element.action(cy, element);
Expand Down
2 changes: 1 addition & 1 deletion dist/cytoscape-actionbar.min.js

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

4 changes: 2 additions & 2 deletions src/CytoscapeActionbar.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
$element = $("<span id='action-#{itemIndex}' class='#{clazz}' title='#{element.tooltip}'></span>")

if element.condition
$condition = $(element.condition);
$element = $condition.append($element);
$condition = $(element.condition)
$element = $condition.append($element)

$actionbar.append($element)

Expand Down

0 comments on commit 32a345d

Please sign in to comment.