Corrected new Closure Compiler warnings
parent
ffad3b81f3
commit
e03454b2b9
|
@ -554,8 +554,6 @@ exports.getPropertyDescriptor = function( obj, prop, nobase )
|
||||||
/**
|
/**
|
||||||
* Indicates whether or not the getPropertyDescriptor method is capable of
|
* Indicates whether or not the getPropertyDescriptor method is capable of
|
||||||
* traversing the prototype chain
|
* traversing the prototype chain
|
||||||
*
|
|
||||||
* @type {boolean}
|
|
||||||
*/
|
*/
|
||||||
exports.defineSecureProp( exports.getPropertyDescriptor, 'canTraverse',
|
exports.defineSecureProp( exports.getPropertyDescriptor, 'canTraverse',
|
||||||
( Object.getPrototypeOf ) ? true : false
|
( Object.getPrototypeOf ) ? true : false
|
||||||
|
|
|
@ -48,7 +48,7 @@ var common = require( './common' ),
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
||||||
'virtual double': function()
|
'virtual dbl': function()
|
||||||
{
|
{
|
||||||
hitDouble = true;
|
hitDouble = true;
|
||||||
}
|
}
|
||||||
|
@ -66,7 +66,7 @@ var common = require( './common' ),
|
||||||
return this.__super( arg );
|
return this.__super( arg );
|
||||||
},
|
},
|
||||||
|
|
||||||
'override double': function()
|
'override dbl': function()
|
||||||
{
|
{
|
||||||
this.myMethod();
|
this.myMethod();
|
||||||
this.__super();
|
this.__super();
|
||||||
|
@ -95,7 +95,7 @@ assert.equal(
|
||||||
hitMethod = hitMethod2 = false;
|
hitMethod = hitMethod2 = false;
|
||||||
|
|
||||||
var arg = 'foobar';
|
var arg = 'foobar';
|
||||||
sub_foo.myMethod().myMethod2( arg ).double();
|
sub_foo.myMethod().myMethod2( arg ).dbl();
|
||||||
|
|
||||||
// myMethod overrides without calling parent
|
// myMethod overrides without calling parent
|
||||||
assert.equal(
|
assert.equal(
|
||||||
|
|
Loading…
Reference in New Issue