add pandora.isEmbedURL method

This commit is contained in:
rolux 2013-02-21 20:17:28 +05:30
parent 2a064259ac
commit 10fc094468

View file

@ -1019,6 +1019,12 @@ pandora.isClipView = function(view, item) {
).indexOf(view) > -1; ).indexOf(view) > -1;
}; };
pandora.isEmbedURL = function(url) {
var hash = Ox.parseURL(url).hash;
return hash.substr(0, 2) == '#?'
&& Ox.unserialize(hash.substr(2)).embed === true
};
pandora.logEvent = function(data, event, element) { pandora.logEvent = function(data, event, element) {
var element = this, var element = this,
handlers = self.eventHandlers ? self.eventHandlers[event] : []; handlers = self.eventHandlers ? self.eventHandlers[event] : [];