Changeset 14633


Ignore:
Timestamp:
11/17/12 01:32:07 (12 years ago)
Author:
tbretz
Message:
Removed fGlobalcontext, using the one bound in which th function/object was created instead; removed obsolte handles to FunctionTemplates, using the callee object instead.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/InterpreterV8.cc

    r14632 r14633  
    12561256
    12571257    // -----------------------------
    1258 
     1258    Handle<FunctionTemplate> sky = FunctionTemplate::New(ConstructorSky);
     1259    sky->SetClassName(String::New("Sky"));
    12591260    Handle<Value> arg[] = { Number::New(equ.ra/15), Number::New(equ.dec), date };
    1260     return handle_scope.Close(fTemplateSky->GetFunction()->NewInstance(3, arg));
     1261    return handle_scope.Close(sky->GetFunction()->NewInstance(3, arg));
     1262
     1263    //Handle<Value> arg[] = { Number::New(equ.ra/15), Number::New(equ.dec), date };
     1264    //return handle_scope.Close(fTemplateSky->GetFunction()->NewInstance(3, arg));
    12611265}
    12621266
     
    16861690    dim->Set(String::New("file"),      FunctionTemplate::New(WrapFile),      ReadOnly);
    16871691
     1692    // timeout   -> Thread  - class?
     1693    // subscribe -> Service - class?
     1694    // file      -> File    - class?
     1695    // new class State ?
     1696    // newState -> return State?
     1697    // setState -> return State?
     1698    // getState -> return State?
     1699
    16881700    Handle<ObjectTemplate> onchange = ObjectTemplate::New();
    16891701    onchange->SetNamedPropertyHandler(OnChangeGet, WrapOnChangeSet);
Note: See TracChangeset for help on using the changeset viewer.