mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
chore: remove critical circular dependencies (#8114)
* chore: remove critical circular dependencies * chore: fix tslint errors * chore: remove platform specific types from interfaces * chore: update unit tests polyfills * fix: incorrect null check * chore: update api.md file * test: improve test case * chore: apply comments * test: avoid page style leaks in tests
This commit is contained in:
committed by
Alexander Vakrilov
parent
5b647bd809
commit
0ffc790d82
@@ -1,6 +1,8 @@
|
||||
// Types
|
||||
import { BindingOptions } from ".";
|
||||
import { ViewBase } from "../view-base";
|
||||
|
||||
// Requires
|
||||
import { unsetValue } from "../properties";
|
||||
import { Observable, WrappedValue, PropertyChangeData, EventData } from "../../../data/observable";
|
||||
import { addWeakEventListener, removeWeakEventListener } from "../weak-event-listener";
|
||||
@@ -16,8 +18,7 @@ import {
|
||||
messageType as traceMessageType
|
||||
} from "../../../trace";
|
||||
import * as types from "../../../utils/types";
|
||||
|
||||
import * as applicationCommon from "../../../application/application-common";
|
||||
import * as bindableResources from "./bindable-resources";
|
||||
import * as polymerExpressions from "../../../js-libs/polymer-expressions";
|
||||
|
||||
export {
|
||||
@@ -368,7 +369,7 @@ export class Binding {
|
||||
let context = this.source && this.source.get && this.source.get() || global;
|
||||
let model = {};
|
||||
let addedProps = [];
|
||||
const resources = applicationCommon.getResources();
|
||||
const resources = bindableResources.get();
|
||||
for (let prop in resources) {
|
||||
if (resources.hasOwnProperty(prop) && !context.hasOwnProperty(prop)) {
|
||||
context[prop] = resources[prop];
|
||||
|
||||
Reference in New Issue
Block a user