lightning-client-utils
Advanced tools
Comparing version 0.7.2 to 0.7.3
12
index.js
@@ -246,5 +246,9 @@ 'use strict'; | ||
getId: function(viz) { | ||
/* | ||
* TODO - move this logic to the visualization base class | ||
* so we aren't passing around viz objects everywhere | ||
*/ | ||
var $el = viz.$el; | ||
if(!viz.$el) { | ||
$el = $(viz.selection); | ||
$el = $(viz.selector); | ||
} | ||
@@ -255,3 +259,6 @@ return $el.closest('[data-model=visualization]').data('model-id'); | ||
getUrl: function(viz) { | ||
/* | ||
* TODO - move this logic to the visualization base class | ||
* so we aren't passing around viz objects everywhere | ||
*/ | ||
var vid = this.getId(viz); | ||
@@ -352,3 +359,2 @@ var host = '/'; | ||
var url = this.getUrl(viz); | ||
r = request.post(url + '/settings/', settings, function(err, res) { | ||
@@ -355,0 +361,0 @@ |
{ | ||
"name": "lightning-client-utils", | ||
"version": "0.7.2", | ||
"version": "0.7.3", | ||
"description": "utilities for lightning visualizations to be used in the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
14255
315