Commit 185906de authored by Evgeny's avatar Evgeny

Fix requiring AsyncBuffer

parent 70041869
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
function Chart(config) { function Chart(config) {
var $$ = this.internal = new ChartInternal(this); var $$ = this.internal = new ChartInternal(this);
$$.ed3Config = config.ed3Config; $$.ed3Config = config.ed3Config || {};
if(config.inject) { if(config.inject) {
injectedMethods.forEach(function(fn){ injectedMethods.forEach(function(fn){
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
var $$ = this; var $$ = this;
$$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require("d3") : undefined; $$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require("d3") : undefined;
var AsyncBuffer = window.AsyncBuffer ? window.AsyncBuffer : typeof require !== 'undefined' ? require("AsyncBuffer").AsyncBuffer : undefined; var AsyncBuffer = window.AsyncBuffer ? window.AsyncBuffer : typeof require !== 'undefined' ? require("async-buffer").AsyncBuffer : undefined;
$$.buffer = new AsyncBuffer(); $$.buffer = new AsyncBuffer();
$$.api = api; $$.api = api;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -11,7 +11,7 @@ var injectedMethods = ['getAxisData', 'getAbscissa']; ...@@ -11,7 +11,7 @@ var injectedMethods = ['getAxisData', 'getAbscissa'];
function Chart(config) { function Chart(config) {
var $$ = this.internal = new ChartInternal(this); var $$ = this.internal = new ChartInternal(this);
$$.ed3Config = config.ed3Config; $$.ed3Config = config.ed3Config || {};
if(config.inject) { if(config.inject) {
injectedMethods.forEach(function(fn){ injectedMethods.forEach(function(fn){
...@@ -40,7 +40,7 @@ function ChartInternal(api) { ...@@ -40,7 +40,7 @@ function ChartInternal(api) {
var $$ = this; var $$ = this;
$$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require("d3") : undefined; $$.d3 = window.d3 ? window.d3 : typeof require !== 'undefined' ? require("d3") : undefined;
var AsyncBuffer = window.AsyncBuffer ? window.AsyncBuffer : typeof require !== 'undefined' ? require("AsyncBuffer").AsyncBuffer : undefined; var AsyncBuffer = window.AsyncBuffer ? window.AsyncBuffer : typeof require !== 'undefined' ? require("async-buffer").AsyncBuffer : undefined;
$$.buffer = new AsyncBuffer(); $$.buffer = new AsyncBuffer();
$$.api = api; $$.api = api;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment