[Code Style] Use prototypes in platform

WTD-1482
This commit is contained in:
Victor Woeltjen
2015-08-11 12:54:50 -07:00
parent f377c7cb71
commit b7765ff388
35 changed files with 1331 additions and 1379 deletions

View File

@@ -25,7 +25,7 @@
* DomainObjectSpec. Created by vwoeltje on 11/6/14.
*/
define(
["../../src/objects/DomainObject"],
["../../src/objects/DomainObjectImpl"],
function (DomainObject) {
"use strict";

View File

@@ -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 () {

View File

@@ -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'] }