Author: Christian Lopes
Date: 2011-05-09 14:20:28 -0700 (Mon, 09 May 2011)
New Revision: 24973
Modified:
cytoscapeweb/trunk/file/html-template/js/cytoscapeweb-file.js
Log:
Fixed "use strict" issue on FF4
Modified: cytoscapeweb/trunk/file/html-template/js/cytoscapeweb-file.js
===================================================================
--- cytoscapeweb/trunk/file/html-template/js/cytoscapeweb-file.js
2011-05-09 21:18:58 UTC (rev 24972)
+++ cytoscapeweb/trunk/file/html-template/js/cytoscapeweb-file.js
2011-05-09 21:20:28 UTC (rev 24973)
@@ -33,14 +33,16 @@
// Create namespaces if not already defined:
(function () {
"use strict";
-
+
if (typeof(window['org']) === 'undefined') {
window['org'] = {};
}
if (typeof(window.org['cytoscapeweb']) === 'undefined') {
+ /** @namespace */
window.org['cytoscapeweb'] = {};
}
if (typeof(window.org.cytoscapeweb['demo']) === 'undefined') {
+ /** @namespace */
window.org.cytoscapeweb['demo'] = {};
}
@@ -49,7 +51,7 @@
// Create a global map to store all instances:
window._cytoscapeWebExporterInstances = { index: 0 };
- org.cytoscapeweb.demo.Exporter = function (containerId, options) {
+ window.org.cytoscapeweb.demo.Exporter = function (containerId, options) {
this.containerId = containerId;
if (!options) { options = {}; }
@@ -97,7 +99,7 @@
// Create a global map to store all instances:
window._cytoscapeWebImporterInstances = { index: 0 };
- org.cytoscapeweb.demo.Importer = function (containerId, options) {
+ window.org.cytoscapeweb.demo.Importer = function (containerId, options) {
this.containerId = containerId;
if (!options) { options = {}; }
--
You received this message because you are subscribed to the Google Groups
"cytoscape-cvs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/cytoscape-cvs?hl=en.