diff --git a/horizon/static/framework/widgets/toast/toast.directive.js b/horizon/static/framework/widgets/toast/toast.directive.js index 9b676e75f4..9d770d5e72 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 4bca734307..3f54738c9e 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 6740a9990d..61888b7bc2 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