On Wed, Feb 27, 2013 at 6:23 AM, shu chen <
csfre...@gmail.com> wrote:
> define("messagePage", ["jquery", "ajaxUtility", "dialog", "jqueryTool",
> "validate", "message"], function ($, ajaxUtility, dialog, jqueryTool,
> validate, message) {
volo amdify takes an "exports" property to also set what the module
export should be, so that the "validate" argument passed to this
define function would have a value:
https://github.com/volojs/volo/blob/master/commands/amdify/doc.md
I think this should work:
volo amdify depends=jquery exports=$.validate
./resources/plugin/jquery-validation-1.9.0/jquery.validate.js
but I'm not exactly sure what that plugin adds to the global $
variable, so I might have that wrong.
That said, since it is a jquery plugin, it should just be attached to
the $ object, even without doing this exports thing. Usually for
jquery plugins you do not reference them directly but use $ to get to
them.
James