#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 <ivasilin...@gridgain.com> Authored: Tue Jun 23 20:22:44 2015 +0300 Committer: ivasilinets <ivasilin...@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;