var createNode = function()

in app/scripts/core/apiProvider.js [25:45]


        var createNode = function(nodes, nodeId, nodeIndex, nodeType) {
        
            var coords = this.getStoredCoords(nodeId);

            if(coords === null) {
                coords = this.logarithmicSpiraCoords(nodeIndex);
            }

            var data = {
                id: nodeId,
                type : nodeType,
                coords: coords
            };

            if(Ember.isNone(nodes[nodeId])) {
                nodes[nodeId] = data;
                return true;
            }

            return false;
        }.bind(this);