refactor(application): rename Binding into Provider

while creating the server version I noticed bindings are still
mentioned

Closes #4951
This commit is contained in:
gdi2290
2015-10-20 03:05:39 +01:00
committed by Victor Berchet
parent ac52bfd80f
commit dc6a066fed
7 changed files with 47 additions and 47 deletions

View File

@ -29,7 +29,7 @@ import {
platformCommon,
PlatformRef,
ApplicationRef,
applicationCommonBindings
applicationCommonProviders
} from 'angular2/src/core/application_ref';
import {Serializer} from "angular2/src/web_workers/shared/serializer";
import {ON_WEB_WORKER} from "angular2/src/web_workers/shared/api";
@ -56,7 +56,7 @@ import {compilerProviders} from 'angular2/src/core/compiler/compiler';
* If no providers are specified, `platform`'s behavior depends on whether an existing
* platform exists:
*
* If no platform exists, a new one will be created with the default {@link platformBindings}.
* If no platform exists, a new one will be created with the default {@link platformProviders}.
*
* If a platform already exists, it will be returned (regardless of what providers it
* was created with). This is a convenience feature, allowing for multiple applications
@ -129,7 +129,7 @@ export function bootstrapWebWorkerCommon(appComponentType: Type, bus: MessageBus
var emitter = bus.from(SETUP_CHANNEL);
subscription = ObservableWrapper.subscribe(emitter, (message: {[key: string]: any}) => {
var bindings =
[applicationCommonBindings(), webWorkerProviders(appComponentType, bus, message)];
[applicationCommonProviders(), webWorkerProviders(appComponentType, bus, message)];
if (isPresent(appProviders)) {
bindings.push(appProviders);
}