PhotoMixins

Description

Reusable photo validation methods for MerjentApp templates.

Methods for validating photos (orientation, captions, location). Methods are bound to the MerjentApp instance via templates (see DefaultTemplate).

Usage: These methods are not called directly. They are bound to app methods by a template function:

// In a template:
			app.validatePhoto = PhotoMixins.standardValidation.bind(app);
			app.limitCaption = PhotoMixins.limitCaption.bind(app);
			
Details