add fireEvent to current global variables that are extended
Can you please add fireEvent to the list of global variables that you currently expose? This would be helpful for firing events within functions that I need to wrap such as Point.drop which uses fireEvent
Below is from highcharts.src.js at around line 17648, see my comment below:
[code]
// global variables
extend(Highcharts, {
// Constructors
Axis: Axis,
Chart: Chart,
Color: Color,
Point: Point,
Tick: Tick,
Renderer: Renderer,
Series: Series,
SVGElement: SVGElement,
SVGRenderer: SVGRenderer,
// Various
arrayMin: arrayMin,
arrayMax: arrayMax,
charts: charts,
dateFormat: dateFormat,
format: format,
pathAnim: pathAnim,
getOptions: getOptions,
hasBidiBug: hasBidiBug,
isTouchDevice: isTouchDevice,
numberFormat: numberFormat,
seriesTypes: seriesTypes,
setOptions: setOptions,
//-------- please add this----------
fireEvent: fireEvent,
addEvent: addEvent,
removeEvent: removeEvent,
createElement: createElement,
discardElement: discardElement,
css: css,
each: each,
extend: extend,
map: map,
merge: merge,
pick: pick,
splat: splat,
extendClass: extendClass,
pInt: pInt,
wrap: wrap,
svg: hasSVG,
canvas: useCanVG,
vml: !hasSVG && !useCanVG,
product: PRODUCT,
version: VERSION
});
[/code]
3
votes
Steve
shared this idea
It’s exposed on the HighchartsAdapter object: http://jsfiddle.net/highcharts/6f37aL6o/