Fix specs.

This commit is contained in:
Cheng Zhao 2014-05-26 13:01:26 +08:00
parent 15d9b320db
commit 9b8edeb609
2 changed files with 11 additions and 3 deletions

View file

@ -68,6 +68,7 @@ Menu::insert = (pos, item) ->
@groupsMap[item.groupId].push item
# Setting a radio menu item should flip other items in the group.
v8Util.setHiddenValue item, 'checked', item.checked
Object.defineProperty item, 'checked',
enumerable: true
get: -> v8Util.getHiddenValue item, 'checked'