summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--horizon/static/framework/widgets/toast/toast.directive.js2
-rw-r--r--horizon/static/framework/widgets/toast/toast.factory.js3
-rw-r--r--horizon/static/framework/widgets/toast/toast.module.js2
3 files changed, 4 insertions, 3 deletions
diff --git a/horizon/static/framework/widgets/toast/toast.directive.js b/horizon/static/framework/widgets/toast/toast.directive.js
index 9b676e75f..9d770d5e7 100644
--- a/horizon/static/framework/widgets/toast/toast.directive.js
+++ b/horizon/static/framework/widgets/toast/toast.directive.js
@@ -14,7 +14,7 @@
* limitations under the License.
*/
(function() {
- 'use_strict';
+ 'use strict';
/**
* @ngdoc directive
diff --git a/horizon/static/framework/widgets/toast/toast.factory.js b/horizon/static/framework/widgets/toast/toast.factory.js
index 4bca73430..3f54738c9 100644
--- a/horizon/static/framework/widgets/toast/toast.factory.js
+++ b/horizon/static/framework/widgets/toast/toast.factory.js
@@ -14,7 +14,7 @@
* limitations under the License.
*/
(function() {
- 'use_strict';
+ 'use strict';
/**
* @ngdoc service
@@ -88,6 +88,7 @@
function add(type, msg) {
var toast = {
type: type === 'error' ? 'danger' : type,
+ /* jshint validthis:true */
typeMsg: this.types[type],
msg: msg,
cancel: cancel
diff --git a/horizon/static/framework/widgets/toast/toast.module.js b/horizon/static/framework/widgets/toast/toast.module.js
index 6740a9990..61888b7bc 100644
--- a/horizon/static/framework/widgets/toast/toast.module.js
+++ b/horizon/static/framework/widgets/toast/toast.module.js
@@ -14,7 +14,7 @@
* limitations under the License.
*/
(function() {
- 'use_strict';
+ 'use strict';
/**
* @ngdoc overview