Skip to content

Instantly share code, notes, and snippets.

@ailabs-software
Created July 18, 2012 15:36
Show Gist options
  • Save ailabs-software/3136976 to your computer and use it in GitHub Desktop.
Save ailabs-software/3136976 to your computer and use it in GitHub Desktop.
Is this ECMAScript okay?
var __objectInheritanceCalculated = [];
while((function()
{
/* There is a object class that has not been processed */
var __t = 0;
for (var m in objectclasses) { __t++; }
if (__t <= __objectInheritanceCalculated.length) return false;
return true;
})())
{
for (var m in objectclasses)
{
console.log(m);
__objectInheritanceCalculated.push(m);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment