js/foundation/json_renderer/json_renderer.js in rsence-pre-2.3.0.1 vs js/foundation/json_renderer/json_renderer.js in rsence-pre-2.3.0.2
- old
+ new
@@ -112,11 +112,11 @@
}
if( !_extend ){
_extend = HClass;
}
for( _key in _definition ){
- if( _reserved.indexOf( _key ) === -1 ){
+ if( !~_reserved.indexOf( _key ) ){
_value = _definition[_key];
if( typeof _value === 'string' ){
_value = this.extEval( _value );
}
_extension[_key] = _value;
@@ -132,11 +132,11 @@
},
findInScope: function( _className ){
if(_className === undefined){
return false;
}
- if(_className.indexOf('.') !== -1){
+ if(~_className.indexOf('.')){
var
_splitClass = _className.split('.'),
j = 1,
_classPart = _splitClass[0],
_classFull = this.findInScope( _classPart );
@@ -217,10 +217,10 @@
// The name of the class:
if( !_dataNode['class'] ){
for( i in _dataNode ){
- if( _reserved.indexOf( i ) === -1 ){
+ if( !~_reserved.indexOf( i ) ){
_className = i;
_origNode = _dataNode;
_dataNode = _dataNode[i];
break;
}