mirror of
https://github.com/gorhill/uBlock.git
synced 2024-09-18 08:52:26 +02:00
jshint
This commit is contained in:
parent
44cb5faf50
commit
fa88ba77fd
@ -615,9 +615,6 @@ var uBlockMessaging = (function(name){
|
|||||||
(function() {
|
(function() {
|
||||||
var messaging = uBlockMessaging;
|
var messaging = uBlockMessaging;
|
||||||
|
|
||||||
var readyProps = {
|
|
||||||
'img': 'complete'
|
|
||||||
};
|
|
||||||
var srcProps = {
|
var srcProps = {
|
||||||
'embed': 'src',
|
'embed': 'src',
|
||||||
'iframe': 'src',
|
'iframe': 'src',
|
||||||
|
@ -40,6 +40,8 @@
|
|||||||
// implementation of Math.random(), but as long as I have a good expectation
|
// implementation of Math.random(), but as long as I have a good expectation
|
||||||
// of uniqueness, it's ok, we are not dealing with critical stuff here.
|
// of uniqueness, it's ok, we are not dealing with critical stuff here.
|
||||||
|
|
||||||
|
/* global chrome */
|
||||||
|
|
||||||
var messaging = (function(name){
|
var messaging = (function(name){
|
||||||
var port = null;
|
var port = null;
|
||||||
var requestId = 1;
|
var requestId = 1;
|
||||||
|
@ -100,7 +100,6 @@ var announce = function(msg) {
|
|||||||
defaultHandler(msg, null, nullFunc);
|
defaultHandler(msg, null, nullFunc);
|
||||||
|
|
||||||
// Extension pages & content scripts handlers
|
// Extension pages & content scripts handlers
|
||||||
var port;
|
|
||||||
for ( var portName in nameToPortMap ) {
|
for ( var portName in nameToPortMap ) {
|
||||||
if ( nameToPortMap.hasOwnProperty(portName) === false ) {
|
if ( nameToPortMap.hasOwnProperty(portName) === false ) {
|
||||||
continue;
|
continue;
|
||||||
@ -202,7 +201,7 @@ var onDisconnect = function(port) {
|
|||||||
listener(msg, port.sender, nullFunc);
|
listener(msg, port.sender, nullFunc);
|
||||||
|
|
||||||
// Cleanup port if no longer in use.
|
// Cleanup port if no longer in use.
|
||||||
var port = nameToPortMap[port.name];
|
port = nameToPortMap[port.name];
|
||||||
if ( port ) {
|
if ( port ) {
|
||||||
delete nameToPortMap[port.name];
|
delete nameToPortMap[port.name];
|
||||||
port.onMessage.removeListener(onMessage);
|
port.onMessage.removeListener(onMessage);
|
||||||
|
Loading…
Reference in New Issue
Block a user