Last active
August 29, 2015 14:26
-
-
Save TLMcode/3b2d04f4fe528c17bfbf to your computer and use it in GitHub Desktop.
anon view test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function() | |
{ | |
var view = | |
{ | |
init: function() | |
{ | |
this.cacheDom(); | |
this.render(); | |
}, | |
cacheDom: function() | |
{ | |
this.$el = $( '#main_div' ); | |
this.$viewdiv = this.$el.find( '#view_div' ); | |
this.template = this.$el.find( '#view' ).html(); | |
}, | |
render: function() | |
{ | |
this.$viewdiv.append( this.template ); | |
} | |
}; | |
view.init(); | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment