{"action":"opened","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1014","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1014/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1014/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1014/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1014","id":103203977,"number":1014,"title":"列表两次赋值后视图不能更新","user":{"login":"xiarugu","id":3876910,"avatar_url":"https://avatars.githubusercontent.com/u/3876910?v=3","gravatar_id":"","url":"https://api.github.com/users/xiarugu","html_url":"https://github.com/xiarugu","followers_url":"https://api.github.com/users/xiarugu/followers","following_url":"https://api.github.com/users/xiarugu/following{/other_user}","gists_url":"https://api.github.com/users/xiarugu/gists{/gist_id}","starred_url":"https://api.github.com/users/xiarugu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xiarugu/subscriptions","organizations_url":"https://api.github.com/users/xiarugu/orgs","repos_url":"https://api.github.com/users/xiarugu/repos","events_url":"https://api.github.com/users/xiarugu/events{/privacy}","received_events_url":"https://api.github.com/users/xiarugu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-26T08:03:38Z","updated_at":"2015-08-26T08:03:38Z","closed_at":null,"body":"测试用例: http://fiddle.jshell.net/d0yjgkc0/31/\r\n问题描述: 对列表两次赋值后, 第三次赋值时未能正确更新视图, 且导致赋值右对象发生变化\r\n\r\n```\r\nvar vm = avalon.define({\r\n    $id: 'page',\r\n    pv: null,\r\n    pvs:[{ name:'江苏', list:[{code:1, name:'南京'}] },\r\n      { name:'山东', list:[{code:2, name:'济南'}] }],\r\n    cities: [],\r\n    choose: function(el)\r\n    {\r\n        vm.pv = el.name;\r\n        vm.cities = el.list;\r\n        console.log(el.$model, el.list[0].name);\r\n    }\r\n});\r\navalon.scan();\r\n```\r\n步骤:\r\n1. choose江苏后, cities列表视图显示\"南京\", \r\n2. choose山东后, 列表视图显示\"济南\"\r\n3. 再次choose江苏后, 列表视图依然显示\"济南\", 且这是控制台输出发现江苏的list内容被替换成了济南"}}