{"action":"closed","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1739","repository_url":"https://api.github.com/repos/RubyLouvre/avalon","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1739/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1739/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1739/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1739","id":176338238,"number":1739,"title":"关于$fire和$watch的BUG","user":{"login":"chen77134056","id":15376128,"avatar_url":"https://avatars.githubusercontent.com/u/15376128?v=3","gravatar_id":"","url":"https://api.github.com/users/chen77134056","html_url":"https://github.com/chen77134056","followers_url":"https://api.github.com/users/chen77134056/followers","following_url":"https://api.github.com/users/chen77134056/following{/other_user}","gists_url":"https://api.github.com/users/chen77134056/gists{/gist_id}","starred_url":"https://api.github.com/users/chen77134056/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chen77134056/subscriptions","organizations_url":"https://api.github.com/users/chen77134056/orgs","repos_url":"https://api.github.com/users/chen77134056/repos","events_url":"https://api.github.com/users/chen77134056/events{/privacy}","received_events_url":"https://api.github.com/users/chen77134056/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-12T10:03:26Z","updated_at":"2016-09-18T06:55:20Z","closed_at":"2016-09-18T06:55:20Z","body":"================\r\n- 在什么浏览器下,IE6,IE7,chrome51?\r\n\r\n- 在avalon什么版本下? 你如果打开avalon源码,将最开头的那段注释贴上来!\r\n\r\n- 提供一个可以运行的例子,比如像这人,请认真用``` code ```及与markdown语法编写ISSUE\r\n\r\nhttps://github.com/RubyLouvre/avalon/issues/1665\r\n\r\n\r\n在chrome51中测试\r\n测试版本1.5.6   更新时间是 2015.9.6\r\n\r\n\r\n```\r\navalon.ready(function(){\r\n\r\n            var vm=avalon.define({\r\n                $id:'ceshi',\r\n                value1:'测试值',\r\n                $skipArray:['value1'],\r\n                fn:function(){\r\n                      // vm.value1='测试值11';\r\n                    //console.log(vm['value1']);\r\n\r\n                         vm.$fire('value1','a','测试值');  //使用.$fire重新监听属性value1\r\n                }\r\n\r\n            });\r\n\r\n            vm.$watch('value1',function(a,b,c){\r\n                 console.log(a,b,c);   \r\n            });\r\n\r\n            avalon.scan(document.getElementsByTagName('body')[0]);\r\n        });\r\n\r\n\r\n<body ms-controller=\"ceshi\">\r\n\r\n   <button ms-click=\"fn()\">{{value1}}</button>\r\n\r\n</body>\r\n```\r\n\r\n在控制台中返回的结果是：\r\na undefined value1\r\n为什么无法获取到 之前的旧值？\r\n理论上来说应该返回的是：\r\na 测试值 value1\r\n\r\n\r\n开始以为自己的语法写错了，就使用2.114加载，语法不变。（我还记得加上@）\r\n在控制台中返回的结果是：a 测试值 value1"}}
{"actor":{"display_login":"RubyLouvre"}}