This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// adaptive function for the new string IDs for Twitter API objects (Snowflake) | |
function useStringIdentifier(obj, property) { | |
var property_str = property + "_str"; | |
if (!obj) { | |
return; | |
} | |
if (obj[property_str]) { | |
obj[property] = obj[property_str].toString(); | |
delete obj[property_str]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
natcompare.js -- Perform 'natural order' comparisons of strings in JavaScript. | |
Copyright (C) 2005 by SCK-CEN (Belgian Nucleair Research Centre) | |
Written by Kristof Coomans <kristof[dot]coomans[at]sckcen[dot]be> | |
Based on the Java version by Pierre-Luc Paour, of which this is more or less a straight conversion. | |
Copyright (C) 2003 by Pierre-Luc Paour <[email protected]> | |
The Java version was based on the C version by Martin Pool. | |
Copyright (C) 2000 by Martin Pool <[email protected]> |