Skip to content

Instantly share code, notes, and snippets.

@pthrasher
Created October 10, 2011 17:23
Show Gist options
  • Save pthrasher/1275853 to your computer and use it in GitHub Desktop.
Save pthrasher/1275853 to your computer and use it in GitHub Desktop.
var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; };
// ...
_window_focus: __bind(function(e)
{
Ti.API.info('window_focus - enter');
if (this.performedInitialFocus == false)
{
this.performedInitialFocus = true;
this._nearbyButton_click();
} else {
this.mapView.selectAnnotation(this.searchLocation);
}
Ti.API.info('window_focus - exit');
}, StoresWindow),
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment