{"action":"created","issue":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/824","labels_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/824/labels{/name}","comments_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/824/comments","events_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/824/events","html_url":"https://github.com/RubyLouvre/avalon/issues/824","id":72979726,"number":824,"title":"ms-if与ms-attr结合使用，偶尔失效的问题","user":{"login":"rengeng1986","id":756225,"avatar_url":"https://avatars.githubusercontent.com/u/756225?v=3","gravatar_id":"","url":"https://api.github.com/users/rengeng1986","html_url":"https://github.com/rengeng1986","followers_url":"https://api.github.com/users/rengeng1986/followers","following_url":"https://api.github.com/users/rengeng1986/following{/other_user}","gists_url":"https://api.github.com/users/rengeng1986/gists{/gist_id}","starred_url":"https://api.github.com/users/rengeng1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rengeng1986/subscriptions","organizations_url":"https://api.github.com/users/rengeng1986/orgs","repos_url":"https://api.github.com/users/rengeng1986/repos","events_url":"https://api.github.com/users/rengeng1986/events{/privacy}","received_events_url":"https://api.github.com/users/rengeng1986/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-04T10:05:00Z","updated_at":"2015-05-05T02:43:08Z","closed_at":null,"body":"场景：我有三条微博信息（a、b、c），其中只有一条（c）含有地图定位信息。切换点击abc后打开每条微博的详情页面。\r\n预期：有定位的打开高德静态图，不含定位的不显示。\r\n问题：切换点击ac或bc都没有问题，如果点击了a、b后再点击c打开c的详情页图片出不来。\r\n\r\n```javascript\r\n//详情VM\r\nvar dynInfoVM=avalon.define({\r\n\t$id:'dynInfoVM',\r\n\tdyn:{},\r\n\treceiverList:[],\r\n\tinit:function(dyn){\r\n\t\tcurDynamic=dyn;\r\n\t\tvar data=$.extend({},dyn.$model);\r\n\t\tdynInfoVM.dyn=data;\r\n\t},\r\n\tclose:function(){\r\n\t\t$('#task-sidebar').removeClass('toggled');\r\n\t},\r\n\tcheckAddress:function(){\r\n\t\tif(dynInfoVM.dyn.address!=null && dynInfoVM.dyn.address!=''){\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\treturn false;\r\n\t}\r\n});\r\n```\r\n\r\n\r\n```html\r\n...\r\n<!--定位信息-->\r\n<div ms-if=\"checkAddress()\">\r\n\t<span style=\"display: inline-block;color: #999;\"><i class=\"md md-location-on c-blue\" style=\"font-size: 16px;\"></i>{{dyn.address}}</span>\r\n\t<span style=\"height: 150px;overflow: hidden;display: block;margin-top: 4px;\">\r\n\t<img ms-click=\"showMap('http://restapi.amap.com/v3/staticmap?key=dfaaab1b4cc1d811dcc4d785a86258f3&size=600*800&location='+dyn.lng+','+dyn.lat+'&zoom=16&markers=mid,,:'+dyn.lng+','+dyn.lat)\"\r\n\t\tclass=\"feed-location-fn-map\"\r\n\t\tms-src=\"http://restapi.amap.com/v3/staticmap?key=dfaaab1b4cc1d811dcc4d785a86258f3&size=398*140&location={{dyn.lng}},{{dyn.lat}}&zoom=13&markers=mid,,:{{dyn.lng}},{{dyn.lat}}\"\r\n\t\tstyle=\"cursor: pointer;\">\r\n\t</span>\r\n</div>\r\n...\r\n```"},"comment":{"url":"https://api.github.com/repos/RubyLouvre/avalon/issues/comments/98916442","html_url":"https://github.com/RubyLouvre/avalon/issues/824#issuecomment-98916442","issue_url":"https://api.github.com/repos/RubyLouvre/avalon/issues/824","id":98916442,"user":{"login":"RubyLouvre","id":190846,"avatar_url":"https://avatars.githubusercontent.com/u/190846?v=3","gravatar_id":"","url":"https://api.github.com/users/RubyLouvre","html_url":"https://github.com/RubyLouvre","followers_url":"https://api.github.com/users/RubyLouvre/followers","following_url":"https://api.github.com/users/RubyLouvre/following{/other_user}","gists_url":"https://api.github.com/users/RubyLouvre/gists{/gist_id}","starred_url":"https://api.github.com/users/RubyLouvre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RubyLouvre/subscriptions","organizations_url":"https://api.github.com/users/RubyLouvre/orgs","repos_url":"https://api.github.com/users/RubyLouvre/repos","events_url":"https://api.github.com/users/RubyLouvre/events{/privacy}","received_events_url":"https://api.github.com/users/RubyLouvre/received_events","type":"User","site_admin":false},"created_at":"2015-05-05T02:43:08Z","updated_at":"2015-05-05T02:43:08Z","body":"看不懂"}}