FIX - Remove trailing spaces
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
|
||||
/**
|
||||
* Core plugin script loaded into the plugin process/thread.
|
||||
*
|
||||
*
|
||||
* Initializes the plugin-site API global methods.
|
||||
*/
|
||||
|
||||
(function(){
|
||||
|
||||
|
||||
// localize
|
||||
var site = new JailedSite(connection);
|
||||
delete JailedSite;
|
||||
delete connection;
|
||||
|
||||
|
||||
site.onGetInterface(function(){
|
||||
launchConnected();
|
||||
});
|
||||
|
||||
|
||||
site.onRemoteUpdate(function(){
|
||||
application.remote = site.getRemote();
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Simplified clone of Whenable instance (the object can not be
|
||||
@@ -29,7 +29,7 @@
|
||||
*/
|
||||
var connected = false;
|
||||
var connectedHandlers = [];
|
||||
|
||||
|
||||
var launchConnected = function() {
|
||||
if (!connected) {
|
||||
connected = true;
|
||||
@@ -40,7 +40,7 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
var checkHandler = function(handler){
|
||||
var type = typeof handler;
|
||||
if (type != 'function') {
|
||||
@@ -53,13 +53,13 @@
|
||||
|
||||
return handler;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Sets a function executed after the connection to the
|
||||
* application is estaplished, and the initial interface-exchange
|
||||
* messaging is completed
|
||||
*
|
||||
*
|
||||
* @param {Function} handler to be called upon initialization
|
||||
*/
|
||||
application.whenConnected = function(handler) {
|
||||
@@ -74,15 +74,15 @@
|
||||
|
||||
/**
|
||||
* Sets the plugin interface available to the application
|
||||
*
|
||||
*
|
||||
* @param {Object} _interface to set
|
||||
*/
|
||||
application.setInterface = function(_interface) {
|
||||
site.setInterface(_interface);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Disconnects the plugin from the application (sending
|
||||
* notification message) and destroys itself
|
||||
|
Reference in New Issue
Block a user