Permalink
Browse files

added support for global namespace and updated the flash movie

  • Loading branch information...
1 parent 5318b52 commit 22705ff77906c966ec7b4ff250d5843380eada71 @rmsguhan committed Sep 9, 2011
Showing with 37 additions and 8 deletions.
  1. +1 −1 assets/ClipBoardCopy.as
  2. BIN assets/ClipBoardCopy.swf
  3. +8 −0 demo/demo_1.html
  4. +28 −7 js/gallery-clipboard.js
@@ -1 +1 @@
-/*
+/*
Binary file not shown.
View
@@ -92,6 +92,14 @@ <h1 id='title'>Flash clipboard copy demo</h1>
var node1 = Y.one(".b1"),
node2 = Y.one(".b2");
+ /* Make sure that the flash interface callback is within a known global name space */
+ window.My = {
+ Global : {
+ foo : "bar"
+ }
+ };
+ Y.ClipBoard.setCallBackGlobal( "My.Global" );
+
/* Set up Copy on Node 1 */
node1.plug(Y.ClipBoard, {
page : Y.one(".container"),
Oops, something went wrong.

0 comments on commit 22705ff

Please sign in to comment.