A simple scaffold for your client side JavaScript.
A simple scaffold for your client side JavaScript.
After renaming your Architect.js file, include it before the closing body tag.
<script src="Architect.custom.js"></script>
<script>
MyAppName.extend({
foo: function(){
alert('bar');
}
});
MyAppName.foo(); // Alerts "bar"
MyAppName.privatize(); // Nothing can be extended now
</script>
This method allows you to do the following:
_log()
is an internal wrapper for console.log()
.var NameSpace
should change to whatever you want.