EVC - Core Tests
Testing some sort of core
by AaronLayton
JavaScript
// Test Core
// Get reference to EVC if it exists if not then blank object
(function(window,$){
// To set the type of object we return
var EventureEcommerce = function(){
this.privacy = "This is private?";
};
// Create local Core
var Core = new EventureEcommerce();
Core.Hooks = {
AllHooks: {},
AddHook: function(){},
BroadcastHook: function(){}
};
// Expose our Core to the global object as EVC and _
window.EVC = window._ = Core;
})(window,jQuery);
EVC.Product = function(Title,ProdID){
this.title = Title || '';
this.ProdID = ProdID || 0;
};
EVC.Product.prototype = {
AddProduct: function(){ return true; }
};