@ardimedia/angular-portal-azure 0.2.50 → 0.2.51

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 +2 -2
  2. package/apn.js +20 -6
  3. package/package.json +1 -1
package/apn.d.ts CHANGED
@@ -123,8 +123,8 @@ declare namespace angularportalazure {
123
123
  };
124
124
  activate(): void;
125
125
  onActivate(): void;
126
- navigateTo(arg: any): void;
127
- onNavigateTo(arg: any): void;
126
+ navigateTo(path: any): void;
127
+ onNavigateTo(path: any): void;
128
128
  comparePaths(path1: string, path2: string): boolean;
129
129
  /** close blade. */
130
130
  close(): void;
package/apn.js CHANGED
@@ -289,6 +289,9 @@ var angularportalazure;
289
289
  },
290
290
  // For the moment we do not distinguish between lower and upper case path name
291
291
  set: function (newPath) {
292
+ if (newPath == null) {
293
+ return;
294
+ }
292
295
  this._path = newPath.toLowerCase();
293
296
  },
294
297
  enumerable: true,
@@ -305,17 +308,21 @@ var angularportalazure;
305
308
  Blade.prototype.onActivate = function () {
306
309
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.onActivate\' not overriden. You could override this.', [this]);
307
310
  };
308
- Blade.prototype.navigateTo = function (arg) {
309
- angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.navigateTo\' called. You should not override this, use onNavigateTo instead.', [this, arg]);
310
- console.log(arg);
311
- this.portalService.$analytics.pageTrack(arg);
312
- this.onNavigateTo(arg);
311
+ Blade.prototype.navigateTo = function (path) {
312
+ angularportalazure.Debug.write('[angularportalazure-debug] \'Blade.navigateTo\' called. You should not override this, use onNavigateTo instead.', [this, path]);
313
+ this.onNavigateTo(path);
313
314
  };
314
- Blade.prototype.onNavigateTo = function (arg) {
315
+ Blade.prototype.onNavigateTo = function (path) {
315
316
  throw new Error('[angularportalazure.Blade] \'onNavigateTo\' is an abstract function. Define one in the derived class.');
316
317
  };
317
318
  // At the moment we do not distinguish between lower and upper case path name
318
319
  Blade.prototype.comparePaths = function (path1, path2) {
320
+ if (path1 == null) {
321
+ return false;
322
+ }
323
+ if (path2 == null) {
324
+ return false;
325
+ }
319
326
  if (path1.toLowerCase() === path2.toLowerCase()) {
320
327
  return true;
321
328
  }
@@ -468,7 +475,14 @@ var angularportalazure;
468
475
  BladeArea.prototype.addBlade = function (path, senderPath) {
469
476
  if (senderPath === void 0) { senderPath = ''; }
470
477
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.addBlade\' called.', [this, senderPath, path]);
478
+ if (path == null) {
479
+ return;
480
+ }
481
+ if (senderPath == null) {
482
+ return;
483
+ }
471
484
  var that = this;
485
+ this.portalService.$analytics.pageTrack(path);
472
486
  path = path.toLowerCase();
473
487
  senderPath = senderPath.toLowerCase();
474
488
  //#region Verify
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.50",
5
+ "version": "0.2.51",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {