init
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* Copyright © Magento, Inc. All rights reserved.
|
||||
* See COPYING.txt for license details.
|
||||
*/
|
||||
define([], function () {
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Function used to be a placeholder for mage-init directive.
|
||||
*/
|
||||
function fn() {
|
||||
fn.testCallback.apply(fn, arguments);
|
||||
}
|
||||
|
||||
/**
|
||||
* Function whose call wll be tested.
|
||||
*/
|
||||
fn.testCallback = function () {};
|
||||
|
||||
return fn;
|
||||
});
|
||||
Reference in New Issue
Block a user