{"action":"created","issue":{"url":"https://api.github.com/repos/neilj/Squire/issues/247","repository_url":"https://api.github.com/repos/neilj/Squire","labels_url":"https://api.github.com/repos/neilj/Squire/issues/247/labels{/name}","comments_url":"https://api.github.com/repos/neilj/Squire/issues/247/comments","events_url":"https://api.github.com/repos/neilj/Squire/issues/247/events","html_url":"https://github.com/neilj/Squire/issues/247","id":189868056,"number":247,"title":"Possible bug removing text alignment","user":{"login":"jcarbo","id":847027,"avatar_url":"https://avatars.githubusercontent.com/u/847027?v=3","gravatar_id":"","url":"https://api.github.com/users/jcarbo","html_url":"https://github.com/jcarbo","followers_url":"https://api.github.com/users/jcarbo/followers","following_url":"https://api.github.com/users/jcarbo/following{/other_user}","gists_url":"https://api.github.com/users/jcarbo/gists{/gist_id}","starred_url":"https://api.github.com/users/jcarbo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcarbo/subscriptions","organizations_url":"https://api.github.com/users/jcarbo/orgs","repos_url":"https://api.github.com/users/jcarbo/repos","events_url":"https://api.github.com/users/jcarbo/events{/privacy}","received_events_url":"https://api.github.com/users/jcarbo/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-16T22:27:38Z","updated_at":"2016-12-07T08:24:33Z","closed_at":"2016-12-07T08:23:16Z","body":"I'm trying to remove the text alignment. Since there's no `removeTextAlignment` function I tried passing both `null` and `undefined` to `setTextAlignment`.\r\n\r\n- `setTextAlignment(undefined)` doesn't work and adds the `align-undefined` class to the markup:\r\n```html\r\n<div class=\"align-undefined\" style=\"text-align: right;\">\r\n```\r\n\r\n- `setTextAlignment(null)` seems to work, although it adds the `align-null` class to the markup: \r\n```html\r\n<div class=\"align-null\">\r\n```\r\n\r\nIs passing `null` the intended usage and the addition of the `align-null` class a bug? Or is the fact that passing `null` clears the text alignment a happy accident? :)"},"comment":{"url":"https://api.github.com/repos/neilj/Squire/issues/comments/265385576","html_url":"https://github.com/neilj/Squire/issues/247#issuecomment-265385576","issue_url":"https://api.github.com/repos/neilj/Squire/issues/247","id":265385576,"user":{"login":"neilj","id":275995,"avatar_url":"https://avatars.githubusercontent.com/u/275995?v=3","gravatar_id":"","url":"https://api.github.com/users/neilj","html_url":"https://github.com/neilj","followers_url":"https://api.github.com/users/neilj/followers","following_url":"https://api.github.com/users/neilj/following{/other_user}","gists_url":"https://api.github.com/users/neilj/gists{/gist_id}","starred_url":"https://api.github.com/users/neilj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilj/subscriptions","organizations_url":"https://api.github.com/users/neilj/orgs","repos_url":"https://api.github.com/users/neilj/repos","events_url":"https://api.github.com/users/neilj/events{/privacy}","received_events_url":"https://api.github.com/users/neilj/received_events","type":"User","site_admin":false},"created_at":"2016-12-07T08:24:33Z","updated_at":"2016-12-07T08:24:33Z","body":"This wasn't an intended feature but seems perfectly reasonable, so I've now fixed it so you can pass `null` and it will properly remove the value and the class name."}}
{"actor":{"display_login":"neilj"}}