{"action":"created","issue":{"url":"https://api.github.com/repos/clientIO/JointJS_plus/issues/57","labels_url":"https://api.github.com/repos/clientIO/JointJS_plus/issues/57/labels{/name}","comments_url":"https://api.github.com/repos/clientIO/JointJS_plus/issues/57/comments","events_url":"https://api.github.com/repos/clientIO/JointJS_plus/issues/57/events","html_url":"https://github.com/clientIO/JointJS_plus/issues/57","id":60466925,"number":57,"title":"joint.ui.inspector bug fix","user":{"login":"kmansel","id":1252780,"avatar_url":"https://avatars.githubusercontent.com/u/1252780?v=3","gravatar_id":"","url":"https://api.github.com/users/kmansel","html_url":"https://github.com/kmansel","followers_url":"https://api.github.com/users/kmansel/followers","following_url":"https://api.github.com/users/kmansel/following{/other_user}","gists_url":"https://api.github.com/users/kmansel/gists{/gist_id}","starred_url":"https://api.github.com/users/kmansel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmansel/subscriptions","organizations_url":"https://api.github.com/users/kmansel/orgs","repos_url":"https://api.github.com/users/kmansel/repos","events_url":"https://api.github.com/users/kmansel/events{/privacy}","received_events_url":"https://api.github.com/users/kmansel/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-10T08:42:06Z","updated_at":"2015-08-31T16:10:39Z","closed_at":"2015-08-31T16:10:39Z","body":"Starting in the parse function (around line 1235 in the clean version)\r\n\r\nWith the inspector, when using a \"range\" type, the parse function is returning the value (which is a number value for the slider/range component) as a string, instead of a number value.  So we need to add the \"range\" type to the parse function to allow it to return a number value properly.\r\n\r\nOld Code : \r\n```\r\nparse: function(type, value, targetElement) {\r\n        \r\n        switch (type) {\r\n          case 'number':\r\n            value = parseFloat(value);\r\n            break;\r\n          case 'toggle':\r\n            value = targetElement.checked;\r\n            break;\r\n          default:\r\n            value = value;\r\n            break;\r\n        }\r\n        return value;\r\n    },\r\n```\r\n\r\nNew Proposed Code : \r\n\r\n```\r\nparse: function(type, value, targetElement) {\r\n        \r\n        switch (type) {\r\n          case 'number':\r\n          case 'range':\r\n            value = parseFloat(value);\r\n            break;\r\n          case 'toggle':\r\n            value = targetElement.checked;\r\n            break;\r\n          default:\r\n            value = value;\r\n            break;\r\n        }\r\n        return value;\r\n    },\r\n```"},"comment":{"url":"https://api.github.com/repos/clientIO/JointJS_plus/issues/comments/136417235","html_url":"https://github.com/clientIO/JointJS_plus/issues/57#issuecomment-136417235","issue_url":"https://api.github.com/repos/clientIO/JointJS_plus/issues/57","id":136417235,"user":{"login":"kumilingus","id":3967880,"avatar_url":"https://avatars.githubusercontent.com/u/3967880?v=3","gravatar_id":"","url":"https://api.github.com/users/kumilingus","html_url":"https://github.com/kumilingus","followers_url":"https://api.github.com/users/kumilingus/followers","following_url":"https://api.github.com/users/kumilingus/following{/other_user}","gists_url":"https://api.github.com/users/kumilingus/gists{/gist_id}","starred_url":"https://api.github.com/users/kumilingus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kumilingus/subscriptions","organizations_url":"https://api.github.com/users/kumilingus/orgs","repos_url":"https://api.github.com/users/kumilingus/repos","events_url":"https://api.github.com/users/kumilingus/events{/privacy}","received_events_url":"https://api.github.com/users/kumilingus/received_events","type":"User","site_admin":false},"created_at":"2015-08-31T16:10:39Z","updated_at":"2015-08-31T16:10:39Z","body":"Fixed. Available in the next release. Thank You!"}}