Export a change method to bind to viewportchange events. #7

Merged
merged 1 commit into from Mar 15, 2012

Projects

None yet

2 participants

@jzaefferer

So far there was a ready method exporter for binding to the viewportready event, but nothing equivalent for the viewportchange event.

Not 100% DRY, but also not really worth abstracting the addEventListener calls either.

@cookiengineer cookiengineer merged commit 6959ed5 into pbakaus:master Mar 15, 2012
@cookiengineer

Sure, makes sense having both methods as callbacks for alternative bindings.

The demos themselves use mostly jQuery for binding on the window, so having the ready and the change directly on the viewporter makes sense.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment