devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From re...@apache.org
Subject svn commit: r1694257 - in /devicemap/trunk/clients/2.0/javascript: devicemap.js devicemaptest.js main.js nodejs_main.js run.sh
Date Wed, 05 Aug 2015 16:17:20 GMT
Author: rezan
Date: Wed Aug  5 16:17:20 2015
New Revision: 1694257

URL: http://svn.apache.org/r1694257
Log:
modules.export

Added:
    devicemap/trunk/clients/2.0/javascript/nodejs_main.js
      - copied, changed from r1694229, devicemap/trunk/clients/2.0/javascript/main.js
Removed:
    devicemap/trunk/clients/2.0/javascript/main.js
Modified:
    devicemap/trunk/clients/2.0/javascript/devicemap.js
    devicemap/trunk/clients/2.0/javascript/devicemaptest.js
    devicemap/trunk/clients/2.0/javascript/run.sh

Modified: devicemap/trunk/clients/2.0/javascript/devicemap.js
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/javascript/devicemap.js?rev=1694257&r1=1694256&r2=1694257&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/javascript/devicemap.js (original)
+++ devicemap/trunk/clients/2.0/javascript/devicemap.js Wed Aug  5 16:17:20 2015
@@ -1,8 +1,14 @@
 var devicemap = devicemap || {};
 
+if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
+  module.exports = devicemap;
+}
+
 devicemap.version = '2.0.0';
 devicemap.debugLevel = devicemap.debugLevel || 2;
 
+devicemap.domains = {};
+
 devicemap.debug = devicemap.debug || function(level, s) {
   if(level <= devicemap.debugLevel) {
     var params = Array.prototype.slice.call(arguments, 1);

Modified: devicemap/trunk/clients/2.0/javascript/devicemaptest.js
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/javascript/devicemaptest.js?rev=1694257&r1=1694256&r2=1694257&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/javascript/devicemaptest.js (original)
+++ devicemap/trunk/clients/2.0/javascript/devicemaptest.js Wed Aug  5 16:17:20 2015
@@ -1 +1,5 @@
-var devicemap = devicemap || {};
+var devicemaptest = devicemaptest || {};
+
+if(typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
+  module.exports = devicemaptest;
+}

Copied: devicemap/trunk/clients/2.0/javascript/nodejs_main.js (from r1694229, devicemap/trunk/clients/2.0/javascript/main.js)
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/javascript/nodejs_main.js?p2=devicemap/trunk/clients/2.0/javascript/nodejs_main.js&p1=devicemap/trunk/clients/2.0/javascript/main.js&r1=1694229&r2=1694257&rev=1694257&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/javascript/main.js (original)
+++ devicemap/trunk/clients/2.0/javascript/nodejs_main.js Wed Aug  5 16:17:20 2015
@@ -1,2 +1,2 @@
-var dmap = require('./devicemap');
-var dmaptest = require('./devicemaptest');
+var devicemap = require('./devicemap');
+var devicemaptest = require('./devicemaptest');

Modified: devicemap/trunk/clients/2.0/javascript/run.sh
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/javascript/run.sh?rev=1694257&r1=1694256&r2=1694257&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/javascript/run.sh (original)
+++ devicemap/trunk/clients/2.0/javascript/run.sh Wed Aug  5 16:17:20 2015
@@ -1,3 +1,3 @@
 #!/bin/bash
 
-nodejs main.js
+nodejs nodejs_main.js



Mime
View raw message