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:
parent
5d5c3d74c1
commit
d9cbf786d5
1 changed files with 4 additions and 4 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Reference in a new issue