I have some code that calls the draw method on a widget whose DrawnState is complete.
Hence I'd expect a warning message to be logged. Instead debug.js issues a call to JSOHelper.getClassName(JavaScriptObject javaScriptObject) passing no params.
This lead to an error complaining "Cannot read property 'getClassName' of undefined"
Reproduced on Chrome 37.0.2062.120 with SmartGWT 4.1p_2014-09-20 (SmartClient Version: v9.1p_2014-09-20/LGPL Development Only (built 2014-09-20))
Follows an excerpt from the call stack
Hence I'd expect a warning message to be logged. Instead debug.js issues a call to JSOHelper.getClassName(JavaScriptObject javaScriptObject) passing no params.
This lead to an error complaining "Cannot read property 'getClassName' of undefined"
Reproduced on Chrome 37.0.2062.120 with SmartGWT 4.1p_2014-09-20 (SmartClient Version: v9.1p_2014-09-20/LGPL Development Only (built 2014-09-20))
Follows an excerpt from the call stack
getClassName (JSOHelper.java:54)
isc.addProperties._getLastErrorCallSitesParsedStack (debug.js:214)
isc.addProperties.getStackTrace (debug.js:177)
isc.Canvas.addMethods.readyToDraw (Canvas.js:3618)
isc.Canvas.addMethods.draw (Canvas.js:3803)
$draw (BaseWidget.java:258)
onDraw_0 (MyWidget.java:146)
$dispatch_39 (DrawEvent.java:70)
dispatch_40 (DrawEvent.java:69)
dispatch_0 (GwtEvent.java:76)
dispatchEvent_1 (EventBus.java:40)
$doFire (SimpleEventBus.java:193)
$fireEvent_1 (SimpleEventBus.java:88)
$fireEvent_0 (HandlerManager.java:127)
$fireEvent (Widget.java:129)
rendered (BaseWidget.java:314)
self_0.onDraw (BaseWidget.java:207)
isc.Canvas.addMethods.draw (Canvas.js:4059)
isc.Layout.addMethods.layoutChildren (Layout.js:2034)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2073)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2073)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2034)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2034)
isc.Layout.addMethods.reflowNow (Layout.js:2309)
(anonymous function) (Layout.js:2292)
isc.EventHandler.addClassMethods.runTeas (EventHandler.js:6159)
isc.EventHandler.addClassMethods._clearThread (EventHandler.js:6127)
isc.EventHandler.addClassMethods.dispatch (EventHandler.js:6216)
(anonymous function) (VM3138:3)
isc.addProperties._getLastErrorCallSitesParsedStack (debug.js:214)
isc.addProperties.getStackTrace (debug.js:177)
isc.Canvas.addMethods.readyToDraw (Canvas.js:3618)
isc.Canvas.addMethods.draw (Canvas.js:3803)
$draw (BaseWidget.java:258)
onDraw_0 (MyWidget.java:146)
$dispatch_39 (DrawEvent.java:70)
dispatch_40 (DrawEvent.java:69)
dispatch_0 (GwtEvent.java:76)
dispatchEvent_1 (EventBus.java:40)
$doFire (SimpleEventBus.java:193)
$fireEvent_1 (SimpleEventBus.java:88)
$fireEvent_0 (HandlerManager.java:127)
$fireEvent (Widget.java:129)
rendered (BaseWidget.java:314)
self_0.onDraw (BaseWidget.java:207)
isc.Canvas.addMethods.draw (Canvas.js:4059)
isc.Layout.addMethods.layoutChildren (Layout.js:2034)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2073)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2073)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2034)
isc.Layout.addMethods.drawChildren (Layout.js:1003)
isc.Canvas.addMethods.draw (Canvas.js:3947)
isc.Layout.addMethods.layoutChildren (Layout.js:2034)
isc.Layout.addMethods.reflowNow (Layout.js:2309)
(anonymous function) (Layout.js:2292)
isc.EventHandler.addClassMethods.runTeas (EventHandler.js:6159)
isc.EventHandler.addClassMethods._clearThread (EventHandler.js:6127)
isc.EventHandler.addClassMethods.dispatch (EventHandler.js:6216)
(anonymous function) (VM3138:3)
Comment