The following bit of JavaScript isn't likely even copyrightable. However, license robots choke on it because it's found on StackOverflow--and therefore under the CC-BY-SA 4.0 (per their current Terms and Conditions):
|
/** |
|
* Check if an object is empty. |
|
* |
|
* Taken from: |
|
* http://stackoverflow.com/questions/679915/how-do-i-test-for-an-empty-javascript-object-from-json/679937#679937 |
|
* |
|
* @param object the object to check. |
|
*/ |
|
util.isEmpty = function(obj) { |
|
for(var prop in obj) { |
|
if(obj.hasOwnProperty(prop)) { |
|
return false; |
|
} |
|
} |
|
return true; |
|
}; |
Not sure if you'd care to replace it with a rewritten variation, but that might help the robots... 😉
The following bit of JavaScript isn't likely even copyrightable. However, license robots choke on it because it's found on StackOverflow--and therefore under the CC-BY-SA 4.0 (per their current Terms and Conditions):
forge/lib/util.js
Lines 2261 to 2276 in 2bb97af
Not sure if you'd care to replace it with a rewritten variation, but that might help the robots... 😉