shichuan/mobile-html5-boilerplate — Issue #63: Invalid Type for element.addEventListener
Author: dreamdust
Created: 2011-10-18 01:15:43+00:00
State: open

MBP.fastButton() uses invalid JavaScript by passing an object instead of a function to element.addEventListener. This throws an invalid type error in blackberry 6 browser as well as other browsers.

W3C specifies that the second argument to addEventListener needs to evaluate to a function.