Skip to content

Commit 3657597

Browse files
author
uzquiano
committed
update to latest release
1 parent 0aa3ffb commit 3657597

File tree

3 files changed

+14
-16
lines changed

3 files changed

+14
-16
lines changed

lib/gitana.js

+12-14
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Gitana JavaScript Driver - Version 1.0.326
2+
Gitana JavaScript Driver - Version 1.0.330
33

44
Copyright 2019 Gitana Software, Inc.
55

@@ -2377,7 +2377,7 @@ if (typeof JSON !== 'object') {
23772377
Gitana.requestCount = 0;
23782378

23792379
// version of the driver
2380-
Gitana.VERSION = "1.0.326";
2380+
Gitana.VERSION = "1.0.330";
23812381

23822382
// allow for optional global assignment
23832383
// TODO: until we clean up the "window" variable reliance, we have to always set onto window again
@@ -4476,7 +4476,7 @@ Gitana.OAuth2Http.TOKEN_METHOD = "POST";
44764476
{
44774477
self.next(returned);
44784478
}
4479-
}, 0);
4479+
});
44804480
}
44814481
else
44824482
{
@@ -5994,20 +5994,20 @@ Gitana.OAuth2Http.TOKEN_METHOD = "POST";
59945994
*
59955995
* @param object {Object} object
59965996
*/
5997-
Gitana.deleteProperties = function(object, deleteFunctions) {
5998-
var keys = [];
5999-
for (var k in object) { keys.push(k); }
5997+
Gitana.deleteProperties = function(object, deleteFunctions)
5998+
{
5999+
Object.keys(object).forEach(function(key) {
60006000

6001-
for (var i = 0; i < keys.length; i++)
6002-
{
6003-
var key = keys[i];
6001+
if (object.hasOwnProperty(key))
6002+
{
6003+
var isFunction = Gitana.isFunction(object[key]);
60046004

6005-
if (object.hasOwnProperty(key)) {
6006-
if (!Gitana.isFunction(object[key]) || (deleteFunctions && Gitana.isFunction(object[key]))) {
6005+
if (!isFunction || (isFunction && deleteFunctions))
6006+
{
60076007
delete object[key];
60086008
}
60096009
}
6010-
}
6010+
});
60116011
};
60126012

60136013

@@ -7834,8 +7834,6 @@ Gitana.OAuth2Http.TOKEN_METHOD = "POST";
78347834
}
78357835
this[k] = o;
78367836

7837-
this[k] = o;
7838-
78397837
this.__keys().push(k);
78407838
}
78417839
}

lib/gitana.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"author": "Gitana Software, Inc. <[email protected]> (https://gitana.io)",
33
"name": "gitana",
44
"description": "Gitana Cloud CMS Driver for Node JS",
5-
"version": "1.0.326",
5+
"version": "1.0.330",
66
"repository": {
77
"type": "git",
88
"url": "git://github.com/gitana/gitana-node-js.git"

0 commit comments

Comments
 (0)