{"size": 756, "ext": "js", "max_stars_repo_path": "Resources/public.js", "max_stars_repo_name": "sg552/titanium_china_app", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Resources/public.js", "max_issues_repo_name": "sg552/titanium_china_app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Resources/public.js", "max_forks_repo_name": "sg552/titanium_china_app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 17.5813953488, "max_line_length": 57, "alphanum_fraction": 0.5740740741}
/*
 * Ti.App.navigation_window({
 *  title: '窗口的名字',
 *  back_function: function(){
 *    win.close();
 *    require('topics')().open();
 *  }
 * })
 *
 */
Ti.App.navigation_window = function(options){
  var title = Ti.UI.createLabel({
    text: options.title,
    center: 0,
    font: {
      fontSize: 25
    },
    color: 'black',
    backgroundColor: 'white'
  })
  var back = Ti.UI.createButton({
    title: "返回",
    color: 'blue',
    font: 20,
    left: 0,
    backgroundColor: 'white'
  })
  var view = Ti.UI.createView({
    backgroundColor: 'white',
    height: 40,
    top: 20,
    left: 0
  })

  view.add(title);
  if(options.back_function){
    back.addEventListener('click', options.back_function)
    view.add(back);
  }
  return view;
}

