Skip to content

Commit

Permalink
Remove duplicated code, linksInSelection is set later again
Browse files Browse the repository at this point in the history
  • Loading branch information
Friedrich W. H. Kossebau committed Sep 24, 2014
1 parent 3053b18 commit a68442d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/editor/widgets/editHyperlinks.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ define("webodf/editor/widgets/editHyperlinks", [

function updateHyperlinkButtons() {
var controllerEnabled = hyperlinkController && hyperlinkController.isEnabled(),
linksInSelection = controllerEnabled && editorSession.getSelectedHyperlinks();
linksInSelection;

// Enable to disable all widgets initially
widget.children.forEach(function (element) {
Expand Down

0 comments on commit a68442d

Please sign in to comment.