nice-elements 1.9.1 → 1.9.2

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nice-elements",
3
- "version": "1.9.1",
3
+ "version": "1.9.2",
4
4
  "description": "Nice elements used in olaii angular 1.x webapps.",
5
5
  "main": "dist/nice.js",
6
6
  "license": "MIT",
@@ -121,6 +121,8 @@ angular.module('niceElements')
121
121
  scope.internalModel = value_new.replace(',', '.');
122
122
  scope.model = scope.internalModel;
123
123
  if (scope.onChange) scope.onChange({ model: scope.model });
124
+ } else {
125
+ if (scope.onChange) scope.onChange({ model: scope.model });
124
126
  }
125
127
  } else {
126
128
  scope.model = scope.internalModel;
@@ -143,7 +145,7 @@ angular.module('niceElements')
143
145
 
144
146
  // Watch for multilanguage change
145
147
  $scope.$watch('multilanguage', function () {
146
- if ($scope.multilanguage && $scope.multilanguageField) {
148
+ if ($scope.multilanguage && $scope.multilanguageField && $scope.multilanguage[$scope.multilanguageField]) {
147
149
  $scope.numberOfLanguages = Object.keys($scope.multilanguage[$scope.multilanguageField]).length;
148
150
  }
149
151
  });
@@ -10,7 +10,7 @@ angular.module('niceElements')
10
10
  .service('NiceService', function () {
11
11
  var service = {
12
12
  name: "Nice elements",
13
- version: "1.9.1",
13
+ version: "1.9.2",
14
14
  getHeader: function () {
15
15
  return {};
16
16
  }