Skip to content

Instantly share code, notes, and snippets.

@kof
Created July 15, 2014 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kof/d09ef3222934bf93c333 to your computer and use it in GitHub Desktop.
Save kof/d09ef3222934bf93c333 to your computer and use it in GitHub Desktop.
Fixes issue with FastClick
define(function(require, exports, module) {
var Surface = require('famous/core/Surface')
// https://github.com/Famous/core/issues/37
Surface.prototype.emit = function(type, event) {
if (event && !event.origin) event.origin = this;
return this.eventHandler.emit(type, event);
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment