{"action":"created","issue":{"url":"https://api.github.com/repos/ibm-js/delite/issues/342","labels_url":"https://api.github.com/repos/ibm-js/delite/issues/342/labels{/name}","comments_url":"https://api.github.com/repos/ibm-js/delite/issues/342/comments","events_url":"https://api.github.com/repos/ibm-js/delite/issues/342/events","html_url":"https://github.com/ibm-js/delite/pull/342","id":51918629,"number":342,"title":"Tracking the changes of 'dir'","user":{"login":"semion1956","id":5304821,"avatar_url":"https://avatars.githubusercontent.com/u/5304821?v=3","gravatar_id":"","url":"https://api.github.com/users/semion1956","html_url":"https://github.com/semion1956","followers_url":"https://api.github.com/users/semion1956/followers","following_url":"https://api.github.com/users/semion1956/following{/other_user}","gists_url":"https://api.github.com/users/semion1956/gists{/gist_id}","starred_url":"https://api.github.com/users/semion1956/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semion1956/subscriptions","organizations_url":"https://api.github.com/users/semion1956/orgs","repos_url":"https://api.github.com/users/semion1956/repos","events_url":"https://api.github.com/users/semion1956/events{/privacy}","received_events_url":"https://api.github.com/users/semion1956/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-12-14T12:54:01Z","updated_at":"2015-01-12T06:30:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ibm-js/delite/pulls/342","html_url":"https://github.com/ibm-js/delite/pull/342","diff_url":"https://github.com/ibm-js/delite/pull/342.diff","patch_url":"https://github.com/ibm-js/delite/pull/342.patch"},"body":"This is some workaround, proposed in order to solve the problem with tracking the changes of property 'dir' (issue #340). Reason of the problem described in #404 by Bill: \"There are some platforms where the custom setter for a native property won't get called, and thus we get no notification that it changed.\"\r\nThere are 3 options for 3 types of platform:\r\n1) If platform supports variant of MutationObserver, create correponding observer;\r\n2) else if platform supports DOMAttrModidfied event, add listener for this event;\r\n3) else add listener for DOMSubtreeModified event (direct getters for 'dir' will not work correctly, but isLeftToRight() can be modified to return correct results)."},"comment":{"url":"https://api.github.com/repos/ibm-js/delite/issues/comments/69533603","html_url":"https://github.com/ibm-js/delite/pull/342#issuecomment-69533603","issue_url":"https://api.github.com/repos/ibm-js/delite/issues/342","id":69533603,"user":{"login":"semion1956","id":5304821,"avatar_url":"https://avatars.githubusercontent.com/u/5304821?v=3","gravatar_id":"","url":"https://api.github.com/users/semion1956","html_url":"https://github.com/semion1956","followers_url":"https://api.github.com/users/semion1956/followers","following_url":"https://api.github.com/users/semion1956/following{/other_user}","gists_url":"https://api.github.com/users/semion1956/gists{/gist_id}","starred_url":"https://api.github.com/users/semion1956/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/semion1956/subscriptions","organizations_url":"https://api.github.com/users/semion1956/orgs","repos_url":"https://api.github.com/users/semion1956/repos","events_url":"https://api.github.com/users/semion1956/events{/privacy}","received_events_url":"https://api.github.com/users/semion1956/received_events","type":"User","site_admin":false},"created_at":"2015-01-12T06:30:33Z","updated_at":"2015-01-12T06:30:33Z","body":"Yes, this notification is received, when attribute is added or removed. That is why I save value of the attribute and remove attribute itself immediately after its appearance. Correct behavior is achieved by using corresponding style. I see this as some workaround for handling *dir* only."}}