Last active
August 29, 2015 14:16
-
-
Save m4olivei/9689a05f0ce5ce12ac88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
/** | |
* TVE Player wrapper behavior. Kick off the player in the page. | |
*/ | |
Drupal.behaviors.sharedTVEPlayerWrapper = { | |
attach: function(context, settings) { | |
// We kinda need the following in order to continue. | |
if (!tve || !tve.adobePass) { | |
return; | |
} | |
tve.adobePass.subscribe(tve.adobePass.events.AUTHN_CHECKED, function() { | |
console.log('HEY THERE!!! adobePass.events.AUTHN_CHECKED JUST HAPPENED!'); | |
console.log(arguments); | |
}); | |
} | |
}; | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment