| Page 1 of 1 | [ 3 posts ] |
|
This is baking my noodle.
I've got a chart in a fairly complicated module, but it's setup is relatively straightforward: Code: var chartConfig = { axes: { values: { roundingMethod: "auto" }}, dataProvider: [...], horizontalGridlines: { ... }, interactionType: marker, seriesKeys: [...], styles: {...}, tooltip: { styles: { ... }, markerLabelFunction = function () { ... } }, type: "column", render: chartDiv, verticalGridlines: { ... } }; var chart = new Y.Chart(chartConfig); I'm seeing an exception deep into the chart-base.js, where this._updateTooltip is being called, and looking for this._tooltip, but this._tooltip hasn't been set, so referencing this._tooltip.node dies. this._tooltip is set in this._getTooltip. The whole thing comes together with: Code: ATTRS: { ... tooltip: { valueFn: "_getTooltip", setter: function (val) { return this._updateTooltip(val); } } ... } I'm stumped. I can't replicate or isolate this issue outside of my module, even if I copy the same code and put it on another page. I'm not modifying any YUI modules. Anyone have any hints on how I can debug this? Update: this change resolved the issue with a local copy of YUI: Code: - var tt = this._tooltip, + var tt = this._tooltip || this._getTooltip(), |
|
Ryan,
Thanks for bringing this to my attention. I have filed a ticket and will investigate this. Your workaround is nice and I'll implement it for the next pr. Tripp |
|
Thanks for looking into this. As far as I can tell, it seems to have something to do with the way attributes are set in the constructor:
http://yuilibrary.com/yui/docs/api/file ... .html#l440 I also was running into some DOM Exception 8 issues when trying to set the tooltip properties after rendering, not sure if they're related though. |
| Page 1 of 1 | [ 3 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group