A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/vuematerial/vue-material/commit/b09777b below:

reduce function complexity (#1853) · vuematerial/vue-material@b09777b · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+8

-4

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+8

-4

lines changed Original file line number Diff line number Diff line change

@@ -67,15 +67,19 @@

67 67

}

68 68 69 69

if (shouldRenderButtonWithListener(listeners)) {

70 -

if (hasChildrenButtons(children)) {

71 -

return MdListItemFakeButton

72 -

}

73 -

return MdListItemButton

70 +

return renderButtonWithListener(children)

74 71

}

75 72 76 73

return MdListItemDefault

77 74

}

78 75 76 +

function renderButtonWithListener (children) {

77 +

if (hasChildrenButtons(children)) {

78 +

return MdListItemFakeButton

79 +

}

80 +

return MdListItemButton

81 +

}

82 + 79 83

export default {

80 84

name: 'MdListItem',

81 85

functional: true,

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4