If you want to create an object and use therm from javascript. Here is some solution:
1. Extend javascript Object:
// Object
var myObject = new Object();
// Properties:
myObject.var1 = true;
myObject.var2 = null;
// Method:
myObject.method1 = function() {
};
myObject.method2 = function(abc) {
};
Recent comments