Added a .gitignore and unified formatting.
Signed-off-by: retep998 <retep998@verizon.net>
This commit is contained in:
parent
de90691234
commit
96a4d2d32f
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
*.xpi
|
||||||
|
*.bat
|
@ -2,7 +2,8 @@
|
|||||||
* To change this template, choose Tools | Templates
|
* To change this template, choose Tools | Templates
|
||||||
* and open the template in the editor.
|
* and open the template in the editor.
|
||||||
*/
|
*/
|
||||||
FBL.ns(function() { with (FBL) {
|
FBL.ns(function () {
|
||||||
|
with (FBL) {
|
||||||
// Panel
|
// Panel
|
||||||
var panelName = "firerecord";
|
var panelName = "firerecord";
|
||||||
|
|
||||||
@ -23,22 +24,19 @@ FireRecordPanel.prototype = extend(Firebug.Panel,
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
// Initialization
|
// Initialization
|
||||||
|
|
||||||
initialize: function()
|
initialize: function () {
|
||||||
{
|
|
||||||
Firebug.Panel.initialize.apply(this, arguments);
|
Firebug.Panel.initialize.apply(this, arguments);
|
||||||
|
|
||||||
Firebug.Inspector.addListener(this);
|
Firebug.Inspector.addListener(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
destroy: function(state)
|
destroy: function (state) {
|
||||||
{
|
|
||||||
Firebug.Panel.destroy.apply(this, arguments);
|
Firebug.Panel.destroy.apply(this, arguments);
|
||||||
|
|
||||||
Firebug.Inspector.removeListener(this);
|
Firebug.Inspector.removeListener(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
show: function(state)
|
show: function (state) {
|
||||||
{
|
|
||||||
Firebug.Panel.show.apply(this, arguments);
|
Firebug.Panel.show.apply(this, arguments);
|
||||||
|
|
||||||
FireRecordPlate.defaultContent.replace({}, this.panelNode);
|
FireRecordPlate.defaultContent.replace({}, this.panelNode);
|
||||||
@ -47,22 +45,19 @@ FireRecordPanel.prototype = extend(Firebug.Panel,
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
// Inspector API implementation
|
// Inspector API implementation
|
||||||
|
|
||||||
startInspecting: function()
|
startInspecting: function () {
|
||||||
{
|
|
||||||
if (FBTrace.DBG_FIRERECORD)
|
if (FBTrace.DBG_FIRERECORD)
|
||||||
FBTrace.sysout("fire_record; startInspecting()");
|
FBTrace.sysout("fire_record; startInspecting()");
|
||||||
},
|
},
|
||||||
|
|
||||||
inspectNode: function(node)
|
inspectNode: function (node) {
|
||||||
{
|
|
||||||
if (FBTrace.DBG_FIRERECORD)
|
if (FBTrace.DBG_FIRERECORD)
|
||||||
FBTrace.sysout("fire_record; inspectNode(node: " + node.tagName + ")");
|
FBTrace.sysout("fire_record; inspectNode(node: " + node.tagName + ")");
|
||||||
|
|
||||||
FireRecordPlate.tName.replace({ object: node }, this.panelNode);
|
FireRecordPlate.tName.replace({ object: node }, this.panelNode);
|
||||||
},
|
},
|
||||||
|
|
||||||
stopInspecting: function(node, canceled)
|
stopInspecting: function (node, canceled) {
|
||||||
{
|
|
||||||
if (FBTrace.DBG_FIRERECORD)
|
if (FBTrace.DBG_FIRERECORD)
|
||||||
FBTrace.sysout("fire_record; stopInspecting(node: " + node.tagName +
|
FBTrace.sysout("fire_record; stopInspecting(node: " + node.tagName +
|
||||||
", canceled: " + canceled + ")");
|
", canceled: " + canceled + ")");
|
||||||
@ -76,10 +71,8 @@ FireRecordPanel.prototype = extend(Firebug.Panel,
|
|||||||
FireRecordPlate.linkPreview.replace({ object: node }, this.panelNode);
|
FireRecordPlate.linkPreview.replace({ object: node }, this.panelNode);
|
||||||
},
|
},
|
||||||
|
|
||||||
supportsObject: function(object, type)
|
supportsObject: function (object, type) {
|
||||||
{
|
if (object instanceof Element) {
|
||||||
if (object instanceof Element)
|
|
||||||
{
|
|
||||||
if (object.tagName.toLowerCase() == "a") {
|
if (object.tagName.toLowerCase() == "a") {
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
@ -100,22 +93,19 @@ FireRecordPanel.prototype = extend(Firebug.Panel,
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
// Inspector Listener
|
// Inspector Listener
|
||||||
|
|
||||||
onStartInspecting: function(context)
|
onStartInspecting: function (context) {
|
||||||
{
|
|
||||||
if (FBTrace.DBG_FIRERECORD)
|
if (FBTrace.DBG_FIRERECORD)
|
||||||
FBTrace.sysout("fire_record; Listener.onStartInspecting(context: " +
|
FBTrace.sysout("fire_record; Listener.onStartInspecting(context: " +
|
||||||
context.getTitle() + ")");
|
context.getTitle() + ")");
|
||||||
},
|
},
|
||||||
|
|
||||||
onInspectNode: function(context, node)
|
onInspectNode: function (context, node) {
|
||||||
{
|
|
||||||
if (FBTrace.DBG_FIRERECORD)
|
if (FBTrace.DBG_FIRERECORD)
|
||||||
FBTrace.sysout("fire_record; Listener.onInspectNode(context: " +
|
FBTrace.sysout("fire_record; Listener.onInspectNode(context: " +
|
||||||
context.getTitle() + ", node: " + node.tagName + ")");
|
context.getTitle() + ", node: " + node.tagName + ")");
|
||||||
},
|
},
|
||||||
|
|
||||||
onStopInspecting: function(context, node, canceled)
|
onStopInspecting: function (context, node, canceled) {
|
||||||
{
|
|
||||||
if (FBTrace.DBG_FIRERECORD)
|
if (FBTrace.DBG_FIRERECORD)
|
||||||
FBTrace.sysout("fire_record; Listener.onStopInspecting(context: " +
|
FBTrace.sysout("fire_record; Listener.onStopInspecting(context: " +
|
||||||
context.getTitle() + ", node: " + node.tagName + ", canceled: " +
|
context.getTitle() + ", node: " + node.tagName + ", canceled: " +
|
||||||
@ -150,16 +140,14 @@ var FireRecordPlate = domplate(
|
|||||||
Firebug.FireRecordModule = extend(Firebug.Module,
|
Firebug.FireRecordModule = extend(Firebug.Module,
|
||||||
/** @lends Firebug.FireRecordModule */
|
/** @lends Firebug.FireRecordModule */
|
||||||
{
|
{
|
||||||
initialize: function()
|
initialize: function () {
|
||||||
{
|
|
||||||
Firebug.Module.initialize.apply(this, arguments);
|
Firebug.Module.initialize.apply(this, arguments);
|
||||||
|
|
||||||
if (Firebug.TraceModule)
|
if (Firebug.TraceModule)
|
||||||
Firebug.TraceModule.addListener(this);
|
Firebug.TraceModule.addListener(this);
|
||||||
},
|
},
|
||||||
|
|
||||||
shutdown: function()
|
shutdown: function () {
|
||||||
{
|
|
||||||
Firebug.Module.shutdown.apply(this, arguments);
|
Firebug.Module.shutdown.apply(this, arguments);
|
||||||
|
|
||||||
if (Firebug.TraceModule)
|
if (Firebug.TraceModule)
|
||||||
@ -169,16 +157,13 @@ Firebug.FireRecordModule = extend(Firebug.Module,
|
|||||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||||
// Trace Listener
|
// Trace Listener
|
||||||
|
|
||||||
onLoadConsole: function(win, rootNode)
|
onLoadConsole: function (win, rootNode) {
|
||||||
{
|
|
||||||
appendStylesheet(rootNode.ownerDocument, "chrome://firerecord/skin/inspector.css");
|
appendStylesheet(rootNode.ownerDocument, "chrome://firerecord/skin/inspector.css");
|
||||||
},
|
},
|
||||||
|
|
||||||
onDump: function(message)
|
onDump: function (message) {
|
||||||
{
|
|
||||||
var index = message.text.indexOf("fire_record;");
|
var index = message.text.indexOf("fire_record;");
|
||||||
if (index == 0)
|
if (index == 0) {
|
||||||
{
|
|
||||||
message.text = message.text.substr("fire_record;".length);
|
message.text = message.text.substr("fire_record;".length);
|
||||||
message.text = trim(message.text);
|
message.text = trim(message.text);
|
||||||
message.type = "DBG_FIRERECORD";
|
message.type = "DBG_FIRERECORD";
|
||||||
@ -194,4 +179,5 @@ Firebug.registerModule(Firebug.FireRecordModule);
|
|||||||
Firebug.registerStylesheet("chrome://firerecord/skin/inspector.css");
|
Firebug.registerStylesheet("chrome://firerecord/skin/inspector.css");
|
||||||
|
|
||||||
|
|
||||||
}});
|
}
|
||||||
|
});
|
@ -2,5 +2,4 @@
|
|||||||
|
|
||||||
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
<overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
|
||||||
<script src="chrome://firerecord/content/firerecord.js" type="application/x-javascript"/>
|
<script src="chrome://firerecord/content/firerecord.js" type="application/x-javascript"/>
|
||||||
|
|
||||||
</overlay>
|
</overlay>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0"?><RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
<?xml version="1.0"?>
|
||||||
xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
<RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#">
|
||||||
|
|
||||||
<Description about="urn:mozilla:install-manifest">
|
<Description about="urn:mozilla:install-manifest">
|
||||||
<em:id>firerecord@qcc.mass.edu</em:id>
|
<em:id>firerecord@qcc.mass.edu</em:id>
|
||||||
@ -17,8 +17,8 @@
|
|||||||
<!-- Extension -->
|
<!-- Extension -->
|
||||||
<em:name>FireRecord</em:name>
|
<em:name>FireRecord</em:name>
|
||||||
<em:description>Firebug Record Extension</em:description>
|
<em:description>Firebug Record Extension</em:description>
|
||||||
<em:creator>Csc-207 Quinsigamond Community College </em:creator>
|
<em:creator>Quinsigamond Community College CSC 207</em:creator>
|
||||||
<em:homepageURL>http://www.qcc.edu</em:homepageURL>
|
<em:homepageURL>http://qcccs.github.com/</em:homepageURL>
|
||||||
</Description>
|
</Description>
|
||||||
</RDF>
|
</RDF>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user