Skip to content

Commit

Permalink
Support observable labels!
Browse files Browse the repository at this point in the history
  • Loading branch information
bago committed Sep 23, 2015
1 parent a3ce6c4 commit 31d9e25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion knockout-undomanager.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
var _xdoCommand = function(label, workState, stack) {
return {
name: ko.computed(function() {
return label.replace(/#COUNT#/, stack().length);
return ko.utils.unwrapObservable(label).replace(/#COUNT#/, stack().length);
}),
enabled: ko.computed(function() {
return stack().length !== 0;
Expand Down

0 comments on commit 31d9e25

Please sign in to comment.