|
@@ -1,7 +1,7 @@
|
|
|
-/**
|
|
|
|
|
|
|
+/**
|
|
|
* Set environment (Desktop or Mobile) automatically, depending on the
|
|
* Set environment (Desktop or Mobile) automatically, depending on the
|
|
|
* environment the subscribed events wil be different.
|
|
* environment the subscribed events wil be different.
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @namespace LUNGO
|
|
* @namespace LUNGO
|
|
|
* @class Environment
|
|
* @class Environment
|
|
|
*
|
|
*
|
|
@@ -31,7 +31,7 @@ LUNGO.Environment = (function(lng, undefined) {
|
|
|
/**
|
|
/**
|
|
|
* Gets the current environment for LungoJS
|
|
* Gets the current environment for LungoJS
|
|
|
*
|
|
*
|
|
|
- * @method init
|
|
|
|
|
|
|
+ * @method current
|
|
|
*
|
|
*
|
|
|
* @return {String} Current environment enumerator
|
|
* @return {String} Current environment enumerator
|
|
|
*/
|
|
*/
|
|
@@ -54,14 +54,14 @@ LUNGO.Environment = (function(lng, undefined) {
|
|
|
* Save in LungoJS.com the use of the service for further ranking
|
|
* Save in LungoJS.com the use of the service for further ranking
|
|
|
*
|
|
*
|
|
|
* @method _saveStatsInLungoJS
|
|
* @method _saveStatsInLungoJS
|
|
|
- */
|
|
|
|
|
|
|
+ */
|
|
|
var _saveStatsInLungoJS = function() {
|
|
var _saveStatsInLungoJS = function() {
|
|
|
lng.Service.post( 'http://www.lungojs.com/stats/', {
|
|
lng.Service.post( 'http://www.lungojs.com/stats/', {
|
|
|
name: lng.App.get('name'),
|
|
name: lng.App.get('name'),
|
|
|
version: lng.App.get('version'),
|
|
version: lng.App.get('version'),
|
|
|
icon: lng.App.get('icon')
|
|
icon: lng.App.get('icon')
|
|
|
});
|
|
});
|
|
|
- }
|
|
|
|
|
|
|
+ };
|
|
|
|
|
|
|
|
return {
|
|
return {
|
|
|
start: start,
|
|
start: start,
|