Dojo to jQuery migration
-
03-07-2019 - |
Question
I have this code:
dojo.declare("City", null, {
constructor : function(cityid, cityinfo){
}
});
dojo.declare("TPolyline", GPolyline, {
constructor : function(points, color){
},
initialize : function(map){
});
What should be it's jQuery equivalent?
Solution
I do not think that jQuery provides tools for creating classes and packages out of the box. You can look to see if there is a plugin that does it.
If this turns out to not be true, I would love to know the answer as well! I have used jQuery a bit but use YUI to build packages and classes.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow