{"action":"created","issue":{"url":"https://api.github.com/repos/fgnass/spin.js/issues/306","labels_url":"https://api.github.com/repos/fgnass/spin.js/issues/306/labels{/name}","comments_url":"https://api.github.com/repos/fgnass/spin.js/issues/306/comments","events_url":"https://api.github.com/repos/fgnass/spin.js/issues/306/events","html_url":"https://github.com/fgnass/spin.js/issues/306","id":115241849,"number":306,"title":"[request] npm update package to latest stable","user":{"login":"izdi","id":6037501,"avatar_url":"https://avatars.githubusercontent.com/u/6037501?v=3","gravatar_id":"","url":"https://api.github.com/users/izdi","html_url":"https://github.com/izdi","followers_url":"https://api.github.com/users/izdi/followers","following_url":"https://api.github.com/users/izdi/following{/other_user}","gists_url":"https://api.github.com/users/izdi/gists{/gist_id}","starred_url":"https://api.github.com/users/izdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izdi/subscriptions","organizations_url":"https://api.github.com/users/izdi/orgs","repos_url":"https://api.github.com/users/izdi/repos","events_url":"https://api.github.com/users/izdi/events{/privacy}","received_events_url":"https://api.github.com/users/izdi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-05T09:25:37Z","updated_at":"2015-11-05T10:33:05Z","closed_at":null,"body":"Could you please upload latest stable package to npm.\r\nThere is a version which does not add `top` and `left` attributes to the spinner `className` option."},"comment":{"url":"https://api.github.com/repos/fgnass/spin.js/issues/comments/154022566","html_url":"https://github.com/fgnass/spin.js/issues/306#issuecomment-154022566","issue_url":"https://api.github.com/repos/fgnass/spin.js/issues/306","id":154022566,"user":{"login":"izdi","id":6037501,"avatar_url":"https://avatars.githubusercontent.com/u/6037501?v=3","gravatar_id":"","url":"https://api.github.com/users/izdi","html_url":"https://github.com/izdi","followers_url":"https://api.github.com/users/izdi/followers","following_url":"https://api.github.com/users/izdi/following{/other_user}","gists_url":"https://api.github.com/users/izdi/gists{/gist_id}","starred_url":"https://api.github.com/users/izdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/izdi/subscriptions","organizations_url":"https://api.github.com/users/izdi/orgs","repos_url":"https://api.github.com/users/izdi/repos","events_url":"https://api.github.com/users/izdi/events{/privacy}","received_events_url":"https://api.github.com/users/izdi/received_events","type":"User","site_admin":false},"created_at":"2015-11-05T10:33:05Z","updated_at":"2015-11-05T10:33:05Z","body":"Sorry, first of all I mean about updating package in npm repository;\r\n```\r\n$ npm install spin\r\nnpm http GET https://registry.npmjs.org/spin\r\nnpm http 200 https://registry.npmjs.org/spin\r\nspin@0.0.1 node_modules/spin\r\n\r\n$ head -1 node_modules/spin/spin.js \r\n//fgnass.github.com/spin.js#v1.2.5\r\n```\r\n\r\nThe npm's package version for some reason is not adding `top` and `left` attributes specified in options, i.e (version of spin is 1.2.5)\r\n```\r\nspinnerOptions: {\r\n        lines: 15, // The number of lines to draw\r\n        length: 11, // The length of each line\r\n        width: 4, // The line thickness\r\n        radius: 9, // The radius of the inner circle\r\n        corners: 1, // Corner roundness (0..1)\r\n        rotate: 0, // The rotation offset\r\n        direction: 1, // 1: clockwise, -1: counterclockwise\r\n        color: '#606060', // #rgb or #rrggbb or array of colors\r\n        speed: 1, // Rounds per second\r\n        trail: 60, // Afterglow percentage\r\n        shadow: false, // Whether to render a shadow\r\n        hwaccel: false, // Whether to use hardware acceleration\r\n        className: 'spinner', // The CSS class to assign to the spinner\r\n        zIndex: 2e9, // The z-index (defaults to 2000000000)\r\n        top: '50%', // Top position relative to parent\r\n        left: '50%' // Left position relative to parent\r\n    },\r\n\r\nspinner = new Spinner(this.spinnerOptions).spin(target);\r\ntarget.appendChild(spinner.el);\r\n```\r\n\r\nAfter rendering the spinner class `spinner` does not have attributes `top` and `left`, which leads to wrong position of the spiner block"}}