Fix: Don't depend on presence of String.prototype.startsWith
Instead use direct comparison with "divider" (matches docs more closely anyhow)
This commit is contained in:
1 parent
5d5c3d74c1
commit
d9cbf786d5
1 file changed
+4
-4
@@ -3,10 +3,10 @@
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu" data-bind="foreach: systemActions">
|
||||
<!-- ko ifnot: action.startsWith("divider") -->
|
||||
<li><a href="#" data-bind="click: $root.triggerAction, text: name"></a></li>
|
||||
<!-- /ko -->
|
||||
<!-- ko if: action.startsWith("divider") -->
|
||||
<!-- ko if: action == "divider" -->
|
||||
<li class="divider" />
|
||||
<!-- /ko -->
|
||||
<!-- ko if: action != "divider" -->
|
||||
<li><a href="#" data-bind="click: $root.triggerAction, text: name"></a></li>
|
||||
<!-- /ko -->
|
||||
</ul>
|
||||
Reference in new issue
Block a user