@ardimedia/angular-portal-azure 0.2.131 → 0.2.133

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/apn.d.ts +1 -1
  2. package/apn.js +4 -5
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -158,7 +158,7 @@ declare namespace angularportalazure {
158
158
  onCommandSwap(): void;
159
159
  /** Obsolete */
160
160
  bladeClose(): void;
161
- setTitle(watchExpression: string, text: string): void;
161
+ setTitle(watchExpression: string, func: () => void): void;
162
162
  private setBladeHeights();
163
163
  }
164
164
  }
package/apn.js CHANGED
@@ -436,13 +436,12 @@ var angularportalazure;
436
436
  };
437
437
  //#endregion
438
438
  //#endregion
439
- Blade.prototype.setTitle = function (watchExpression, text) {
439
+ Blade.prototype.setTitle = function (watchExpression, func) {
440
440
  var _this = this;
441
- if (this.watcherTitle != undefined) {
442
- this.watcherTitle();
441
+ if (this.watcherTitle === undefined) {
442
+ this.watcherTitle = this.$scope.$watch(watchExpression, function () { func(); });
443
+ this.$scope.$on('$destroy', function () { _this.watcherTitle(); });
443
444
  }
444
- this.watcherTitle = this.$scope.$watch(watchExpression, function () { return _this.title = (text || ''); });
445
- this.$scope.$on('$destroy', function () { _this.watcherTitle(); });
446
445
  };
447
446
  Blade.prototype.setBladeHeights = function () {
448
447
  var that = this;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ardimedia/angular-portal-azure",
3
3
  "description": "Angular Portal Azure - GUI Framework.",
4
4
  "author": "Ardimedia Anstalt <info@ardimedia.com> (http://www.ardimedia.com)",
5
- "version": "0.2.131",
5
+ "version": "0.2.133",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {