Last Comment Bug 665517 - GCLI commands should use (args, context) rather than (args, env)
: GCLI commands should use (args, context) rather than (args, env)
Status: VERIFIED FIXED
:
Product: Firefox
Classification: Client Software
Component: Developer Tools (show other bugs)
: Trunk
: All All
: -- normal (vote)
: ---
Assigned To: Joe Walker [:jwalker] (needinfo me or ping on irc)
:
: J. Ryan Stinnett [:jryans] (use ni?)
Mentors:
Depends on:
Blocks: GCLI-ENABLE
  Show dependency treegraph
 
Reported: 2011-06-20 05:39 PDT by Joe Walker [:jwalker] (needinfo me or ping on irc)
Modified: 2011-06-22 07:42 PDT (History)
1 user (show)
See Also:
Crash Signature:
(edit)
QA Whiteboard:
Iteration: ---
Points: ---
Has Regression Range: ---
Has STR: ---


Attachments

Description Joe Walker [:jwalker] (needinfo me or ping on irc) 2011-06-20 05:39:25 PDT
The context object would have the following functions:

getEnvironment()
getDocument()
createPromise()

and these functions would no longer need to be exposed by gcli/index
Comment 1 Joe Walker [:jwalker] (needinfo me or ping on irc) 2011-06-20 10:04:08 PDT
Improved ...
The context object would have the following signature:

{
  environment: ...
  document: ...
  createPromise: function() { ... }
}

Note You need to log in before you can comment on or make changes to this bug.