Do not use named AMD modules
[MAILPOET-1829]
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
define('admin', [
|
||||
define([
|
||||
'jquery'
|
||||
],
|
||||
function admin(jQuery) {
|
||||
|
@@ -11,7 +11,7 @@ function requestFailed(errorMessage, xhr) {
|
||||
};
|
||||
}
|
||||
|
||||
define('ajax', ['mailpoet', 'jquery', 'underscore'], function ajax(mp, jQuery, _) {
|
||||
define(['mailpoet', 'jquery', 'underscore'], function ajax(mp, jQuery, _) {
|
||||
var MailPoet = mp;
|
||||
|
||||
MailPoet.Ajax = {
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('date',
|
||||
define(
|
||||
[
|
||||
'mailpoet',
|
||||
'jquery',
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('handlebars_helpers', ['handlebars'], function handlebarsHelpers(Handlebars) {
|
||||
define(['handlebars'], function handlebarsHelpers(Handlebars) {
|
||||
// Handlebars helpers
|
||||
Handlebars.registerHelper('concat', function concatHelper() {
|
||||
var size = (arguments.length - 1);
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('i18n',
|
||||
define(
|
||||
[
|
||||
'mailpoet'
|
||||
], function i18n(
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('iframe', ['mailpoet'], function iframeModule(mp) {
|
||||
define(['mailpoet'], function iframeModule(mp) {
|
||||
'use strict';
|
||||
|
||||
var MailPoet = mp;
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('mailpoet', [], function mailpoet() {
|
||||
define([], function mailpoet() {
|
||||
// A placeholder for MailPoet object
|
||||
var MailPoet = {};
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('mailpoet', [], function mailpoet() {
|
||||
define([], function mailpoet() {
|
||||
// A placeholder for MailPoet object
|
||||
var MailPoet = {};
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('mailpoet', [], function mailpoet() {
|
||||
define([], function mailpoet() {
|
||||
// A placeholder for MailPoet object
|
||||
var MailPoet = {};
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable func-names */
|
||||
define('modal', ['mailpoet', 'jquery'],
|
||||
define(['mailpoet', 'jquery'],
|
||||
function (mp, jQuery) {
|
||||
'use strict';
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
/* eslint-disable func-names */
|
||||
define('mp2migrator', ['mailpoet', 'jquery'], function (mp, jQuery) {
|
||||
define(['mailpoet', 'jquery'], function (mp, jQuery) {
|
||||
'use strict';
|
||||
|
||||
var MailPoet = mp;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
'use strict';
|
||||
|
||||
define('notice', ['mailpoet', 'jquery'], function (mp, jQuery) { // eslint-disable-line func-names
|
||||
define(['mailpoet', 'jquery'], function (mp, jQuery) { // eslint-disable-line func-names
|
||||
/*= ==========================================================================================
|
||||
|
||||
MailPoet Notice:
|
||||
|
@@ -1,4 +1,4 @@
|
||||
define('num',
|
||||
define(
|
||||
[
|
||||
'mailpoet'
|
||||
], function ( // eslint-disable-line func-names
|
||||
|
Reference in New Issue
Block a user