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