Created
August 15, 2016 06:04
Revisions
-
solidpple created this gist
Aug 15, 2016 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ /** * 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(); }); });