Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #246 from IDotD/Idrinth-patch-1
Browse files Browse the repository at this point in the history
Update core.js
  • Loading branch information
w20k authored Jan 11, 2017
2 parents 53a8865 + 4f4953b commit 1a99b37
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mods/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ idrinth.core = {
* @returns {Boolean}
*/
fieldIsSetting: function ( parent, field, allowObjects ) {
return parent && typeof parent === 'object' && field && parent.hasOwnProperty ( field ) && ( typeof parent[field] !== 'object' || allowObjects ) && typeof parent[field] !== 'function';
return parent && typeof parent === 'object' && field && parent.hasOwnProperty ( field ) && ( parent[field] === null || typeof parent[field] !== 'object' || allowObjects ) && typeof parent[field] !== 'function';
},
ajax: {
runHome: function ( url, success, failure, timeout, additionalHeader, isStatic ) {
Expand Down Expand Up @@ -160,4 +160,4 @@ idrinth.core = {
}
}
}
};
};
1 change: 1 addition & 0 deletions src/root.scss
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@

#idrinth-controls {
top: 5px;
@include z-offset(5);
right: 5px;
position: fixed;
}
Expand Down

0 comments on commit 1a99b37

Please sign in to comment.