Skip to content
Permalink
Browse files

reorg: m4d_core renamed IOCContainer to Container

  • Loading branch information...
MikeMitterer committed Dec 19, 2018
1 parent 66ee59a commit 35a0e9412429ffb2d783577d32e0ac4222e776a6
@@ -0,0 +1,5 @@
# Change Log for m4d_dnd
Material Design 4 Dart - Drag & Drop


This CHANGELOG.md was generated with [**Changelog for Dart**](https://pub.dartlang.org/packages/changelog)
@@ -46,7 +46,7 @@ class MaterialDraggable extends MdlComponent /* implements MdlDataConsumer */ {

Draggable _draggable;

MaterialDraggable.fromElement(final dom.HtmlElement element,final ioc.IOCContainer iocContainer)
MaterialDraggable.fromElement(final dom.HtmlElement element,final ioc.Container iocContainer)
: super(element,iocContainer) {

_init();
@@ -138,7 +138,7 @@ class MaterialDraggable extends MdlComponent /* implements MdlDataConsumer */ {
void registerMaterialDraggable() {
final MdlConfig config = new MdlConfig<MaterialDraggable>(
_MaterialDraggableConstant.WIDGET_SELECTOR,
(final dom.HtmlElement element,final ioc.IOCContainer iocContainer)
(final dom.HtmlElement element,final ioc.Container iocContainer)
=> new MaterialDraggable.fromElement(element,iocContainer)
);

@@ -29,7 +29,7 @@ class MaterialDropZone extends MdlComponent {
final DragInfo _dragInfo = new DragInfo();
Dropzone _dropzone;

MaterialDropZone.fromElement(final dom.HtmlElement element,final ioc.IOCContainer iocContainer)
MaterialDropZone.fromElement(final dom.HtmlElement element,final ioc.Container iocContainer)
: super(element,iocContainer) {
}

@@ -66,7 +66,7 @@ class MaterialDropZone extends MdlComponent {
final StringToFunction stf = new StringToFunction(functionToCall);

_logger.info("FunctionToCall ${stf.functionAsString}(${stf.params.join(",")})");
final events = ioc.IOCContainer().resolve(dndService.DNDEvents).as<ioc.ToEvents>();
final events = ioc.Container().resolve(dndService.DNDEvents).as<ioc.ToEvents>();
if(events().containsKey(stf.functionAsString)) {
Function.apply(events()[stf.functionAsString],[data]);
} else {
@@ -147,7 +147,7 @@ class _MdlAcceptor extends Acceptor {
void registerMaterialDropZone() {
final MdlConfig config = new MdlConfig<MaterialDropZone>(
_MaterialDropZoneConstant.WIDGET_SELECTOR,
(final dom.HtmlElement element,final ioc.IOCContainer iocContainer)
(final dom.HtmlElement element,final ioc.Container iocContainer)
=> new MaterialDropZone.fromElement(element,iocContainer)
);

@@ -48,7 +48,7 @@ void registerMdlDND() {
registerMaterialDropZone();
}

class DNDModule extends ioc.IOCModule {
class DNDModule extends ioc.Module {

@override
configure() {
@@ -17,7 +17,7 @@ dependencies:

dnd: ^1.0.0

m4d_core: '>=0.1.0 <1.0.0'
m4d_core: '>=0.2.0 <1.0.0'
# path: /Volumes/Daten/DevLocal/DevDart/m4d/m4d_core

m4d_flux: '>=0.1.0 <1.0.0'

0 comments on commit 35a0e94

Please sign in to comment.
You can’t perform that action at this time.