First test is over
Finally had time to test the main two functions of my framework. Had to fix a few things but it took me a lot of time to understand the details on each error.
Now I have a namespace called M_CORE which will be the main namespace for everything inside the framework.Ā
The next step will be creating my ajax class and then the library retriever.
Here is a part of the code that shows how to create a class and then how to extend it.
var itemClass = M_CORE.Class.enhance({ Ā init: function(what) { Ā Ā Ā console.log(what); Ā Ā },
Ā Ā someFunction: function(t) { Ā Ā Ā Ā console.log(t); Ā Ā } });
var item = itemClass.enhance({ Ā Ā init: function() { Ā Ā Ā Ā alert('TEST'); Ā Ā } });
var i = new itemClass('Me'); var it = new item(); it.someFunction('DUDE!');
As you can see I created a new class named itemClass which is a prolongation of M_CORE.Class (The main class and class manager of my code), then I created a Item class extending the itemClass.
Now is time to start with the next step.Ā
















