Skip to content
This repository has been archived by the owner on Jan 27, 2023. It is now read-only.

Commit

Permalink
Updating to M104 deployment.
Browse files Browse the repository at this point in the history
  • Loading branch information
serkan-inci committed Aug 31, 2016
1 parent 49bbcac commit 86e7cf3
Show file tree
Hide file tree
Showing 7 changed files with 4,740 additions and 828 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ Dependency graph for the types:
Although TypeScript declare files do not exist at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) repo, they can still be used through [tsd](https://www.npmjs.com/package/tsd).

1. First, make sure that the dependencies are loaded using below command:
* `tsd install jquery knockout q --save`
* `tsd install jquery knockout q require --save`

2. Next, run below command to get vss-web-extension-sdk types added to tsd.d.ts:
* `tsd link`
Expand Down
15 changes: 11 additions & 4 deletions lib/VSS.SDK.js
Original file line number Diff line number Diff line change
Expand Up @@ -667,7 +667,7 @@ var VSS;
(function (VSS) {
// W A R N I N G: if VssSDKVersion changes, the VSS WEB SDK demand resolver needs to be updated with the new version
VSS.VssSDKVersion = 2.0;
VSS.VssSDKRestVersion = "2.2";
VSS.VssSDKRestVersion = "2.3";
var bodyElement;
var webContext;
var hostPageContext;
Expand Down Expand Up @@ -948,7 +948,9 @@ var VSS;
function issueVssRequire(modules, callback) {
if (hostPageContext.diagnostics.bundlingEnabled) {
window.require(["VSS/Bundling"], function (VSS_Bundling) {
VSS_Bundling.requireModules(modules, callback);
VSS_Bundling.requireModules(modules).spread(function () {
callback.apply(this, arguments);
});
});
}
else {
Expand Down Expand Up @@ -1126,12 +1128,17 @@ var VSS;
VSS.getAppToken = getAppToken;
/**
* Requests the parent window to resize the container for this extension based on the current extension size.
*
* @param width Optional width, defaults to scrollWidth
* @param height Optional height, defaults to scrollHeight
*/
function resize() {
function resize(width, height) {
if (!bodyElement) {
bodyElement = document.getElementsByTagName("body").item(0);
}
parentChannel.invokeRemoteMethod("resize", "VSS.HostControl", [bodyElement.scrollWidth, bodyElement.scrollHeight]);
var newWidth = typeof width === "number" ? width : bodyElement.scrollWidth;
var newHeight = typeof height === "number" ? height : bodyElement.scrollHeight;
parentChannel.invokeRemoteMethod("resize", "VSS.HostControl", [newWidth, newHeight]);
}
VSS.resize = resize;
function setupAmdLoader() {
Expand Down
2 changes: 1 addition & 1 deletion lib/VSS.SDK.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vss-web-extension-sdk",
"version": "1.102.0",
"version": "1.104.0",
"description": "Visual Studio Services Client SDK. JavaScript library for Visual Studio Online extensions.",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down
Loading

0 comments on commit 86e7cf3

Please sign in to comment.