Permalink
Browse files

aesthetic changes

  • Loading branch information...
c4milo committed May 3, 2012
1 parent 8bb2715 commit c10d39e17ba6145ae7141db7831460eba964066d
Showing with 7 additions and 7 deletions.
  1. +3 −3 lib/inspector.js
  2. +3 −3 lib/page.js
  3. +1 −1 lib/runtime.js
View
@@ -1,11 +1,11 @@
function InspectorAgent() {
- this._enable = false;
+ this.enabled = false;
}
(function() {
this.enable = function(params, sendResult) {
- sendResult({result: this._enable});
+ sendResult({result: this.enabled});
};
}).call(InspectorAgent.prototype);
-module.exports = new InspectorAgent();
+module.exports = InspectorAgent;
View
@@ -1,15 +1,15 @@
function PageAgent() {
- this._enable = false;
+ this.enabled = false;
}
(function() {
this.enable = function(params, sendResult) {
- sendResult({result: this._enable});
+ sendResult({result: this.enabled});
};
this.canOverrideDeviceMetrics = function(params, sendResult) {
sendResult({result: false});
};
}).call(PageAgent.prototype);
-module.exports = new PageAgent();
+module.exports = PageAgent;
View
@@ -262,5 +262,5 @@ function RuntimeAgent() {
};
}).call(RuntimeAgent.prototype);
-module.exports = new RuntimeAgent();
+module.exports = RuntimeAgent;

0 comments on commit c10d39e

Please sign in to comment.