Created
August 15, 2016 06:04
-
-
Save solidpple/24078e300ca42964dc94c07eb24501f6 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| /** | |
| * Created by banana on 8/15/16. | |
| */ | |
| requirejs([ "common" ], function () { | |
| requirejs([ "loglevel" ], function (log) { | |
| var _searchBtnRef = null; | |
| var _searchKeywordRef = null; | |
| var _initView = function() { | |
| _searchKeywordRef = $("#search_keyword"); | |
| _searchBtnRef = $("#search"); | |
| _bindEvent(); | |
| } | |
| var _bindEvent = function() { | |
| _searchBtnRef.click(function() { | |
| var searchKeyword = _searchKeywordRef.val(); | |
| log.info("search keyword : " + searchKeyword); | |
| }); | |
| } | |
| var _init = function () { | |
| _initView(); | |
| }; | |
| _init(); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment