File tree Expand file tree Collapse file tree 6 files changed +16
-15
lines changed
Expand file tree Collapse file tree 6 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " gitana" ,
33 "description" : " Gitana JavaScript Driver for Cloud CMS" ,
4- "version" : " 1.0.326 " ,
4+ "version" : " 1.0.330 " ,
55 "main" : " dist/gitana.js" ,
66 "license" : " Apache-2.0" ,
77 "keywords" : [
Original file line number Diff line number Diff line change 11{
22 "name" : " gitana" ,
3- "version" : " 1.0.326 " ,
3+ "version" : " 1.0.330 " ,
44 "main" : [
55 " dist/gitana.js"
66 ],
Original file line number Diff line number Diff line change 226226 }
227227 this [ k ] = o ;
228228
229- this [ k ] = o ;
230-
231229 this . __keys ( ) . push ( k ) ;
232230 }
233231 }
Original file line number Diff line number Diff line change 262262 {
263263 self . next ( returned ) ;
264264 }
265- } , 0 ) ;
265+ } ) ;
266266 }
267267 else
268268 {
Original file line number Diff line number Diff line change 145145 *
146146 * @param object {Object} object
147147 */
148- Gitana . deleteProperties = function ( object , deleteFunctions ) {
149- var keys = [ ] ;
150- for ( var k in object ) { keys . push ( k ) ; }
148+ Gitana . deleteProperties = function ( object , deleteFunctions )
149+ {
150+ Object . keys ( object ) . forEach ( function ( key ) {
151151
152- for ( var i = 0 ; i < keys . length ; i ++ )
153- {
154- var key = keys [ i ] ;
152+ if ( object . hasOwnProperty ( key ) )
153+ {
154+ var isFunction = Gitana . isFunction ( object [ key ] ) ;
155155
156- if ( object . hasOwnProperty ( key ) ) {
157- if ( ! Gitana . isFunction ( object [ key ] ) || ( deleteFunctions && Gitana . isFunction ( object [ key ] ) ) ) {
156+ if ( ! isFunction || ( isFunction && deleteFunctions ) )
157+ {
158158 delete object [ key ] ;
159159 }
160160 }
161- }
161+ } ) ;
162162 } ;
163163
164164
Original file line number Diff line number Diff line change 11{
22 "name" : " gitanajs" ,
3- "version" : " 1.0.326 " ,
3+ "version" : " 1.0.330 " ,
44 "repository" : {
55 "type" : " git" ,
66 "url" : " git://github.com/gitana/gitana-javascript-driver.git"
3131 "grunt-jsdoc" : " ^2.2.1" ,
3232 "grunt-release" : " ^0.14.0" ,
3333 "ink-docstrap" : " ^1.3.2"
34+ },
35+ "scripts" : {
36+ "bump" : " ./node_modules/grunt/bin/grunt bump"
3437 }
3538}
You can’t perform that action at this time.
0 commit comments