You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ignite.apache.org by sb...@apache.org on 2015/06/23 19:47:42 UTC

[16/20] incubator-ignite git commit: #ignite-965: code style ignite.js

#ignite-965: code style ignite.js


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/294531bf
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/294531bf
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/294531bf

Branch: refs/heads/ignite-965
Commit: 294531bf18cf2d6553c11de1e212f7ab93f14b4f
Parents: 4bb2004
Author: ivasilinets <iv...@gridgain.com>
Authored: Tue Jun 23 20:22:44 2015 +0300
Committer: ivasilinets <iv...@gridgain.com>
Committed: Tue Jun 23 20:22:44 2015 +0300

----------------------------------------------------------------------
 modules/nodejs/src/main/js/ignite.js | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/294531bf/modules/nodejs/src/main/js/ignite.js
----------------------------------------------------------------------
diff --git a/modules/nodejs/src/main/js/ignite.js b/modules/nodejs/src/main/js/ignite.js
index 1db3be8..dca292e 100644
--- a/modules/nodejs/src/main/js/ignite.js
+++ b/modules/nodejs/src/main/js/ignite.js
@@ -15,6 +15,9 @@
  * limitations under the License.
  */
 
+var Cache = require("./cache").Cache;
+var Compute = require("./compute").Compute
+
 /**
  * Create an instance of Ignite
  *
@@ -27,6 +30,7 @@ function Ignite(server) {
 }
 
 /**
+ * @this {Ignite}
  * @returns {Server} Server
  */
 Ignite.prototype.server = function() {
@@ -41,8 +45,6 @@ Ignite.prototype.server = function() {
  * @returns {Cache} Cache
  */
 Ignite.prototype.cache = function(cacheName) {
-  var Cache = require("./cache").Cache;
-
   return new Cache(this._server, cacheName);
 }
 
@@ -53,8 +55,7 @@ Ignite.prototype.cache = function(cacheName) {
  * @returns {Compute} Compute
  */
 Ignite.prototype.compute = function() {
-  var Compute = require("./compute").Compute
-
   return new Compute(this._server);
 }
+
 exports.Ignite = Ignite;