Browsing articles from "May, 2011"
May
17
2011

Dojo Beginner Gotcha: Accidental Static Fields

Static-Electricity-II-TW

Many developers with a background in Software Engineering are drawn to Dojo because of its ability to simulate classical type declaration and inheritance structures via dojo.declare. Specifying a ‘class’ via dojo.declare is straight-forward, but an extremely common mistake involves the accidental declaration of a ‘static field’ (i.e. a class variable) when intending to declare an instance variable.