@ardimedia/angular-portal-azure 0.2.6 → 0.2.7

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 (2) hide show
  1. package/apn.js +11 -4
  2. package/package.json +1 -1
package/apn.js CHANGED
@@ -239,7 +239,7 @@ var angularportalazure;
239
239
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' constructor called.', [this, portalService, path, title, subtitle, width]);
240
240
  var that = this;
241
241
  this.blade = this;
242
- this.path = path;
242
+ this.path = path.toLowerCase(); // we do not distinguish between lower and upper case path name
243
243
  this.title = title;
244
244
  this.subTitle = subtitle;
245
245
  this.width.width = width + 'px';
@@ -272,7 +272,8 @@ var angularportalazure;
272
272
  // Register listener1
273
273
  this.listener1 = that.portalService.$rootScope.$on('BladeArea.AddBlade', function (event, args) {
274
274
  angularportalazure.Debug.write('[angularportalazure-debug] \'Blade\' BladeArea.AddBlade event processing.', [this, event, args]);
275
- if (args.path === that.blade.path) {
275
+ // we do not distinguish between lower and upper case path name
276
+ if (args.path.toLowerCase() === that.blade.path) {
276
277
  that.activate();
277
278
  }
278
279
  });
@@ -442,6 +443,8 @@ var angularportalazure;
442
443
  if (senderPath === void 0) { senderPath = ''; }
443
444
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.addBlade\' called.', [this, senderPath, path]);
444
445
  var that = this;
446
+ path = path.toLowerCase();
447
+ senderPath = senderPath.toLowerCase();
445
448
  //#region Verify
446
449
  if (path === undefined || path === '') {
447
450
  return;
@@ -461,7 +464,8 @@ var angularportalazure;
461
464
  //#endregion
462
465
  //#region Make sure the blade is not yet show
463
466
  this.blades.forEach(function (blade) {
464
- if (blade.path === path) {
467
+ // we do not distinguish between lower and upper case path name
468
+ if (blade.path.toLowerCase() === path.toLowerCase()) {
465
469
  throw new Error('[angularportalazure.BladeArea] path: \'' + path + '\' will not be added. It is already added.');
466
470
  }
467
471
  ;
@@ -495,6 +499,8 @@ var angularportalazure;
495
499
  BladeArea.prototype.clearPath = function (path) {
496
500
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.clearPath\' called.', [this, path]);
497
501
  var that = this;
502
+ // we do not distinguish between lower and upper case path name
503
+ path = path.toLowerCase();
498
504
  var isremoved = that.blades.some(function (blade, index) {
499
505
  if (blade.path === path) {
500
506
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.clearPath\' set bladeUrls.length to: ' + index);
@@ -526,12 +532,13 @@ var angularportalazure;
526
532
  BladeArea.prototype.clearChild = function (path) {
527
533
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.clearChild\' called.', [this, path]);
528
534
  var that = this;
535
+ path = path.toLowerCase();
529
536
  if (path === '') {
530
537
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.clearChild\' path is empty, nothing to clear.');
531
538
  return;
532
539
  }
533
540
  var isremoved = that.blades.some(function (blade, index) {
534
- // we do not distinguish between lower and upper case
541
+ // we do not distinguish between lower and upper case path name
535
542
  if (blade.path.toLowerCase() === path.toLowerCase()) {
536
543
  angularportalazure.Debug.write('[angularportalazure-debug] \'BladeArea.clearChild\' set bladeUrls.length to: ' + (index + 1));
537
544
  that.blades.length = index + 1;
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.6",
5
+ "version": "0.2.7",
6
6
  "main": "index.js",
7
7
  "typings": "apn.d.ts",
8
8
  "dependencies": {