From e03454b2b90f36b092f134f6b76336efe5aacf9a Mon Sep 17 00:00:00 2001 From: Mike Gerwitz Date: Mon, 6 Jan 2014 22:05:05 -0500 Subject: [PATCH] Corrected new Closure Compiler warnings --- lib/util.js | 2 -- test/test-class-parent.js | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/util.js b/lib/util.js index 668ff79..19c13b6 100644 --- a/lib/util.js +++ b/lib/util.js @@ -554,8 +554,6 @@ exports.getPropertyDescriptor = function( obj, prop, nobase ) /** * Indicates whether or not the getPropertyDescriptor method is capable of * traversing the prototype chain - * - * @type {boolean} */ exports.defineSecureProp( exports.getPropertyDescriptor, 'canTraverse', ( Object.getPrototypeOf ) ? true : false diff --git a/test/test-class-parent.js b/test/test-class-parent.js index c5e30be..adb7b49 100644 --- a/test/test-class-parent.js +++ b/test/test-class-parent.js @@ -48,7 +48,7 @@ var common = require( './common' ), return this; }, - 'virtual double': function() + 'virtual dbl': function() { hitDouble = true; } @@ -66,7 +66,7 @@ var common = require( './common' ), return this.__super( arg ); }, - 'override double': function() + 'override dbl': function() { this.myMethod(); this.__super(); @@ -95,7 +95,7 @@ assert.equal( hitMethod = hitMethod2 = false; var arg = 'foobar'; -sub_foo.myMethod().myMethod2( arg ).double(); +sub_foo.myMethod().myMethod2( arg ).dbl(); // myMethod overrides without calling parent assert.equal(