I meant third.

Sent from my iPhone

On May 20, 2013, at 7:21 PM, "James M. Greene" <notifications@github.com>
wrote:

In src/flash/ZeroClipboard.as:

> +      // for everything in the extra object, add it to the normal options
> +      for (var i:String in extra) {
> +        normalOptions[i] = extra[i];
> +      }
> +
> +      return normalOptions;
> +    }
> +
> +    // amdWrappedDispatch
> +    //
> +    // string javascript function used to call `ZeroClipboard.dispatch` with AMD
> +    //
> +    // returns string
> +    private static function amdWrappedDispatch(amdModuleId:String): String {
> +      return "(function (event, args) {\n" +
> +             "  require([\"" + amdModuleId + "\"], function (ZeroClipboard) {\n" +

@mastahyeti <https://github.com/mastahyeti>:

Just to clarify though, you will still need to do the \ to \\ trick for the
second parameter to ExternalInterface.call.

I'm pretty sure that's actually not true because the arguments are
hard-coded on our Flash side rather than coming from user input.
Additionally, Flash will automatically serialize any serializable data
types like those, so you can trust that a string in ActionScript will be a
still string when it is received in JS.

—
Reply to this email directly or view it on
GitHub<https://github.com/jonrohan/ZeroClipboard/pull/145/files#r4308615>
.