fixed removeEventListener not working for resize event
Merge branch 'swipe2-pr1' into swipe2
resize event quits early if container hasn't changed
make swipe compatible with closure compiler