Skip to content

Instantly share code, notes, and snippets.

@anareyna
Created September 25, 2013 16:47
Show Gist options
  • Save anareyna/6702491 to your computer and use it in GitHub Desktop.
Save anareyna/6702491 to your computer and use it in GitHub Desktop.
demojs.sublime-snippet
<snippet>
<content><![CDATA[
var Demo = ( function() {
var st = {
container : '#container',
btnSearch : '#btnSearch'
},
dom = {},
catchDom = function() {
dom.container = \$(st.container);
dom.btnSearch = \$(st.btnSearch);
},
bindEvents = function() {
dom.container.on('mouseenter', myFunction);
},
runFunction = function() {
};
return {
init : function() {
catchDom();
bindEvents();
runFunction();
}
}
})();
Demo.init();
]]></content>
<tabTrigger>demojs</tabTrigger>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment