Created
September 25, 2013 16:47
-
-
Save anareyna/6702491 to your computer and use it in GitHub Desktop.
demojs.sublime-snippet
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
<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