Menu
Home
Blog
Add-ons
Forum
Wiki
Developers
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
extensions
mashTape
chrome
content
iframe-utils.js
Go to the documentation of this file.
1
function
mashTape_openLink
(
href
) {
2
Components.classes[
'@mozilla.org/appshell/window-mediator;1'
]
3
.getService(Components.interfaces.nsIWindowMediator)
4
.getMostRecentWindow(
'Songbird:Main'
).gBrowser
5
.loadOneTab(
href
)
6
}
7
8
window
.addEvent(
'click'
,
function
(e) {
9
var
target
= e.target;
10
while
(target !=
null
&& !target.href)
11
target = target.parentNode;
12
if
(target ==
null
)
13
return
;
14
if
(target.href) {
15
mashTape_openLink
(target.href);
16
e.stop();
17
}
18
});
19
window
let window
Definition:
nsSessionStore.js:2340
href
Element Properties href
Definition:
mootools-1.2-core.js:158
mashTape_openLink
function mashTape_openLink(href)
Definition:
iframe-utils.js:1
null
return null
Definition:
FeedWriter.js:1143
target
var target
Definition:
jquery-ui-personalized-1.6rc2.min.js:450
if
if(DEBUG_DATAREMOTES)
Definition:
sbDataRemote.js:524