From 5a2a925cd9c8547520abdfc1fea623b358bddd5c Mon Sep 17 00:00:00 2001 From: Erik Andersson Date: Tue, 3 Jan 2017 13:15:27 +0100 Subject: [PATCH] Rename Check.typeOf.function -> Check.typeOf.func --- Source/Core/Check.js | 2 +- Specs/Core/CheckSpec.js | 16 ++++++++-------- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/Core/Check.js b/Source/Core/Check.js index 4183a6fe064e..5bf150dcab79 100644 --- a/Source/Core/Check.js +++ b/Source/Core/Check.js @@ -88,7 +88,7 @@ define([ * @param {String} name The name of the variable being tested * @exception {DeveloperError} test must be typeof 'function' */ - Check.typeOf.function = function (test, name) { + Check.typeOf.func = function (test, name) { if (typeof test !== 'function') { throw new DeveloperError(getFailedTypeErrorMessage(typeof test, 'function', name)); } diff --git a/Specs/Core/CheckSpec.js b/Specs/Core/CheckSpec.js index df0aebc938d4..54bcc1cd304b 100644 --- a/Specs/Core/CheckSpec.js +++ b/Specs/Core/CheckSpec.js @@ -30,27 +30,27 @@ defineSuite([ }).toThrowDeveloperError(); }); - it('Check.typeOf.function does not throw when passed a function', function () { + it('Check.typeOf.func does not throw when passed a function', function () { expect(function () { - Check.typeOf.function(function () {return true;}, 'mockName'); + Check.typeOf.func(function () {return true;}, 'mockName'); }).not.toThrowDeveloperError(); }); - it('Check.typeOf.function throws when passed a non-function', function () { + it('Check.typeOf.func throws when passed a non-function', function () { expect(function () { - Check.typeOf.function({}, 'mockName'); + Check.typeOf.func({}, 'mockName'); }).toThrowDeveloperError(); expect(function () { - Check.typeOf.function([], 'mockName'); + Check.typeOf.func([], 'mockName'); }).toThrowDeveloperError(); expect(function () { - Check.typeOf.function(1, 'mockName'); + Check.typeOf.func(1, 'mockName'); }).toThrowDeveloperError(); expect(function () { - Check.typeOf.function('snth', 'mockName'); + Check.typeOf.func('snth', 'mockName'); }).toThrowDeveloperError(); expect(function () { - Check.typeOf.function(true, 'mockName'); + Check.typeOf.func(true, 'mockName'); }).toThrowDeveloperError(); });