Closed imcotton closed 14 years ago
I saw this code at README.textile var currentTime : Date = new Date(); injector.mapClass(Date, currentTime, 'currentTime');
var currentTime : Date = new Date(); injector.mapClass(Date, currentTime, 'currentTime');
Isn't the second parameter request Class type? Why there full with a instance? Doesn't the compiler throw a Compile-Time error?
Fixed an error in the documentation.
Closed by fb13cee3b2f99bb87c8fa82f19133163297abbfe
I saw this code at README.textile
var currentTime : Date = new Date(); injector.mapClass(Date, currentTime, 'currentTime');
Isn't the second parameter request Class type? Why there full with a instance? Doesn't the compiler throw a Compile-Time error?