UNPKG

gd-sprest-js

Version:

SharePoint 2013/Online js components.

25 lines (24 loc) 886 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var Fabric = require("./fabric"); var Components = require("./components"); var WebParts = require("./webparts"); var gd_sprest_1 = require("gd-sprest"); // Set the JS library exports.RESTJS = gd_sprest_1.$REST; exports.RESTJS.JS = { Components: Components, Fabric: Fabric, WebParts: WebParts }; // Wait for the core library to be loaded window["SP"] && window["SP"].SOD ? window["SP"].SOD.executeOrDelayUntilScriptLoaded(function () { // Get the global variable var $REST = window["$REST"]; if ($REST) { // Add the JS library $REST["JS"] = { Components: Components, Fabric: Fabric, WebParts: WebParts }; } // Alert other scripts this library is loaded window["SP"].SOD.notifyScriptLoadedAndExecuteWaitingJobs("gd-sprest-js.js"); }, "gd-sprest.js") : null;