forked from 0x2620/pandora
add pandora.isEmbedURL method
This commit is contained in:
parent
2a064259ac
commit
10fc094468
1 changed files with 6 additions and 0 deletions
|
@ -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] : [];
|
||||||
|
|
Loading…
Reference in a new issue