MDL-55835 js: fix lint issues

Some caused by eslint checks being better, some just not detected
because we don't show warnings well (MDL-54930).
This commit is contained in:
Dan Poltawski 2016-10-07 09:54:55 +01:00
parent 00c714f05c
commit e4edbce35d
4 changed files with 5 additions and 5 deletions

View File

@ -77,8 +77,8 @@ define(['jquery', 'core/modal_events', 'core/modal', 'core/modal_save_cancel', '
*/
var createFromElement = function(type, modalElement, triggerElement) {
modalElement = $(modalElement);
var className = CLASSES[type];
var modal = new className(modalElement);
var ClassName = CLASSES[type];
var modal = new ClassName(modalElement);
setUpTrigger(modal, triggerElement);
return modal;

View File

@ -72,7 +72,7 @@ define(
dialogue.show();
// On hide handler.
modal.getRoot().on(ModalEvents.hidden, function () {
modal.getRoot().on(ModalEvents.hidden, function() {
// Empty modal contents when it's hidden.
modal.setBody('');

View File

@ -1 +1 @@
define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(b){a('[data-toggle="popover"]').popover()}),{}});
define(["jquery","./tether"],function(a,b){return window.jQuery=a,window.Tether=b,require(["theme_boost/util","theme_boost/alert","theme_boost/button","theme_boost/carousel","theme_boost/collapse","theme_boost/dropdown","theme_boost/modal","theme_boost/scrollspy","theme_boost/tab","theme_boost/tooltip","theme_boost/popover"],function(){a('[data-toggle="popover"]').popover()}),{}});

View File

@ -39,7 +39,7 @@ define(['jquery', './tether'], function(jQuery, Tether) {
'theme_boost/tab',
'theme_boost/tooltip',
'theme_boost/popover'],
function(another) {
function() {
jQuery('[data-toggle="popover"]').popover();
});