{"action":"closed","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1119","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1119/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1119/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/1119/events","html_url":"https://github.com/RubyLouvre/avalon/issues/1119","id":112728651,"number":1119,"title":"[Bug Report]: 整个对象绑定时，如果内层对象被置空会报错（1.5.4）","user":{"login":"fish-ball","id":2227971,"avatar_url":"https://avatars.githubusercontent.com/u/2227971?v=3","gravatar_id":"","url":"https://api.github.com/users/fish-ball","html_url":"https://github.com/fish-ball","followers_url":"https://api.github.com/users/fish-ball/followers","following_url":"https://api.github.com/users/fish-ball/following{/other_user}","gists_url":"https://api.github.com/users/fish-ball/gists{/gist_id}","starred_url":"https://api.github.com/users/fish-ball/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fish-ball/subscriptions","organizations_url":"https://api.github.com/users/fish-ball/orgs","repos_url":"https://api.github.com/users/fish-ball/repos","events_url":"https://api.github.com/users/fish-ball/events{/privacy}","received_events_url":"https://api.github.com/users/fish-ball/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-22T04:19:34Z","updated_at":"2015-10-22T09:28:48Z","closed_at":"2015-10-22T09:28:48Z","body":"```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n<head>\r\n    <meta charset=\"UTF-8\">\r\n    <title></title>\r\n    <script src=\"js/avalonjs/avalon.modern.min.js\"></script>\r\n</head>\r\n<body ms-controller=\"main\">\r\n\r\n    <div ms-if=\"outer.inner\">\r\n        {{ outer.inner.name }}\r\n    </div>\r\n    <a href=\"javascript:;\" ms-click=\"reset\">reset</a>\r\n\r\n    <script>\r\n        var vm = avalon.define({\r\n            $id: 'main',\r\n            outer: {},\r\n            reset: function() {\r\n                vm.outer = {};\r\n            }\r\n        });\r\n        vm.outer = {\r\n            inner: {\r\n                name: 'Hello world!'\r\n            }\r\n        };\r\n    </script>\r\n\r\n</body>\r\n</html>\r\n```\r\n\r\n点击 reset 按钮时，会报错：\r\n\r\n```\r\nwarning:exception throwed in [avalon.injectBinding]  TypeError: Cannot read property 'name' of undefined\r\n    at Number.eval (eval at i (http://cps.easecloud.cn/js/avalonjs/avalon.modern.min.js:1:407), <anonymous>:3:20)\r\n    at Object.avalon.injectBinding.e.update (http://cps.easecloud.cn/js/avalonjs/avalon.modern.min.js:1:27889)\r\n    at Object.pa.flush (http://cps.easecloud.cn/js/avalonjs/avalon.modern.min.js:2:5179)\r\n    at Array.<anonymous> (http://cps.easecloud.cn/js/avalonjs/avalon.modern.min.js:2:5105)\r\n    at MutationObserver.t (http://cps.easecloud.cn/js/avalonjs/avalon.modern.min.js:1:19628)\r\n```"}}