Advertisement
    SHARE
    TWEET
    Guest User

    Untitled

    a guest
    Oct 5th, 2012
    210
    0
    Never
    Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
    1. /**
    2. * Loads a table either from our cached list, or inserts it into
    3. * the database and adds it to our cached list
    4. * @param options the table options
    5. * @param callback callback(table or null)
    6. */
    7. function loadTable(options, callback) {
    8. var key = options.key + "." + options.tablename;
    9. var priv = false;
    10. if(options.tableid) {
    11. key = options.key + "." + options.tableid;
    12. priv = true;
    13. }
    14. if(tablelist[key]) {
    15. callback(tablelist[key]);
    16. return;
    17. }
    18. // insert or get existing
    19. ...
    Advertisement
    Add Comment
    Please, Sign In to add comment
    Advertisement
    Public Pastes
    Advertisement
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /