[Code Style] Use prototypes in platform
WTD-1482
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
* DomainObjectSpec. Created by vwoeltje on 11/6/14.
|
||||
*/
|
||||
define(
|
||||
["../../src/objects/DomainObject"],
|
||||
["../../src/objects/DomainObjectImpl"],
|
||||
function (DomainObject) {
|
||||
"use strict";
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
|
||||
define(
|
||||
['../../src/types/TypeImpl'],
|
||||
function (typeImpl) {
|
||||
function (TypeImpl) {
|
||||
"use strict";
|
||||
|
||||
describe("Type definition wrapper", function () {
|
||||
@@ -41,7 +41,7 @@ define(
|
||||
properties: [ {} ],
|
||||
model: {someKey: "some value"}
|
||||
};
|
||||
type = typeImpl(testTypeDef);
|
||||
type = new TypeImpl(testTypeDef);
|
||||
});
|
||||
|
||||
it("exposes key from definition", function () {
|
||||
|
||||
@@ -128,7 +128,7 @@ define(
|
||||
});
|
||||
|
||||
it("includes capabilities from undefined type in all types", function () {
|
||||
captured.type = TypeProvider.instantiate(
|
||||
captured.type = new TypeProvider(
|
||||
testTypeDefinitions.concat([
|
||||
{ capabilities: ['a', 'b', 'c'] },
|
||||
{ capabilities: ['x', 'y', 'z'] }
|
||||
|
||||
Reference in New Issue
Block a user