Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions dist/milo_ui.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -1051,7 +1051,9 @@ var MLListItem = module.exports = milo.createComponentClass({
'dragenter': { subscriber: onDragHover, context: 'owner' },
'dragover': { subscriber: onDragHover, context: 'owner' },
'dragleave': { subscriber: onDragOut, context: 'owner' },
'drop': { subscriber: onItemDrop, context: 'owner' }
'drop': { context: 'owner', subscriber: function() {
this.onItemDrop.apply(this, arguments);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shit code?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lol.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

;)

}}
},
allow: {
components: isComponentAllowed
Expand All @@ -1063,14 +1065,16 @@ var MLListItem = module.exports = milo.createComponentClass({
moveItem: MLListItem$moveItem,
removeItem: MLListItem$removeItem,
getMetaData: MLListItem$getMetaData,
isDropAllowed: MLListItem$isDropAllowed
isDropAllowed: MLListItem$isDropAllowed,
onItemDrop: MLListItem$onItemDrop
}
});


function MLListItem$init() {
MLListItem.super.init.apply(this, arguments);
this.on('childrenbound', onChildrenBound);

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Random whitespace?

}


Expand Down Expand Up @@ -1113,7 +1117,7 @@ function isComponentAllowed() {
}


function onItemDrop(eventType, event) {
function MLListItem$onItemDrop(eventType, event) {
onDragOut.call(this);
var dt = new DragDrop(event);
var meta = dt.getComponentMeta();
Expand Down
9 changes: 6 additions & 3 deletions lib/components/ListItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ var MLListItem = module.exports = milo.createComponentClass({
'dragenter': { subscriber: onDragHover, context: 'owner' },
'dragover': { subscriber: onDragHover, context: 'owner' },
'dragleave': { subscriber: onDragOut, context: 'owner' },
'drop': { subscriber: onItemDrop, context: 'owner' }
'drop': { context: 'owner', subscriber: function() {
this.onItemDrop.apply(this, arguments);
}}
},
allow: {
components: isComponentAllowed
Expand All @@ -31,7 +33,8 @@ var MLListItem = module.exports = milo.createComponentClass({
moveItem: MLListItem$moveItem,
removeItem: MLListItem$removeItem,
getMetaData: MLListItem$getMetaData,
isDropAllowed: MLListItem$isDropAllowed
isDropAllowed: MLListItem$isDropAllowed,
onItemDrop: MLListItem$onItemDrop
}
});

Expand Down Expand Up @@ -81,7 +84,7 @@ function isComponentAllowed() {
}


function onItemDrop(eventType, event) {
function MLListItem$onItemDrop(eventType, event) {
onDragOut.call(this);
var dt = new DragDrop(event);
var meta = dt.getComponentMeta();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "milo-ui",
"version": "1.0.11",
"version": "1.0.12",
"description": "UI components and schema-based form generator for [milo.js](https://github.com/milojs/milo) framework",
"keywords": [
"framework",
Expand Down