blueimp/Gallery — pull request #191 by netzkind (2014-10-29 09:57:17+00:00)
Title: Work around "document not ready"

If you start the gallery while the page is still loading (DOMContentLoaded was not yet fired, e.g. on pages with external dependencies like analytics, ads), a javascript-error was thrown for transform was undefined despite transition being defined.

As transition/transform are not absolutely necessary, this patch removes the assumption that "this.support.transform" will be defined if "this.support.transition" is.

Only appended "this.support.transform" to conditions where "this.support.transition" is already checked, so there should be no significant performance penalty, if any.