new GraphicsLayer(null) fails in 3.9

Discussion created by tcoopman on Apr 9, 2014
Latest reply on Apr 17, 2014 by tyndallt_esri
When running this code in 3.9:

var l = new GraphicsLayer(null)

In 3.9 you get this error:

TypeError {stack: "TypeError: Cannot read property 'plugins' of undef???esolve (", message: "Cannot read property 'plugins' of undefined"}
 "TypeError: Cannot read property 'plugins' of undefined
    at Object.some (
    at g._pluginsHandler (
    at h.(anonymous function).g (
    at new <anonymous> (

In 3.8 this worked just fine. Solving this is easy of course (don't pass null to the GraphicsLayer).