move variable declarations, comment

This commit is contained in:
Jordan Davis 2015-08-27 13:56:29 -07:00
parent 7a883267ad
commit 3267868932

View file

@ -52,6 +52,10 @@ Template.ionSpinner.rendered = function() {
dur: DURATION
};
//get icon name and element from blaze template
var iconName = this.firstNode.className.split(' ').pop();
var iconElement = this.firstNode;
function createSvgElement(tagName, data, parent, spinnerName) {
var ele = document.createElement(SHORTCUTS[tagName] || tagName);
var k, x, y;
@ -411,9 +415,6 @@ Template.ionSpinner.rendered = function() {
}
var iconName = this.firstNode.className.split(' ').pop();
var iconElement = this.firstNode;
init();
function init() {