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:
Gina Häußge 2015-06-09 22:33:18 +02:00
parent 5d5c3d74c1
commit d9cbf786d5

View file

@ -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>