Skip to content

Commit

Permalink
v0.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mobius1 committed Nov 3, 2017
1 parent cbfc28a commit 8bce9f6
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "mobius1-selectable",
"version": "0.4.0",
"version": "0.4.1",
"ignore": [
".gitattributes",
"README.md"
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": "mobius1-selectable",
"version": "0.4.0",
"version": "0.4.1",
"description": "UI Selectable plugin without the bloat of jQuery and jQuery UI.",
"main": "selectable.min.js",
"scripts": {
Expand Down
25 changes: 12 additions & 13 deletions selectable.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
* and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
*
* Version: 0.4.0
* Version: 0.4.1
*
*/
(function(root, factory) {
Expand Down Expand Up @@ -306,7 +306,7 @@
this.enable();

setTimeout(function() {
that.emit("init");
that.emit("selectable.init");
}, 10);
};

Expand Down Expand Up @@ -339,7 +339,7 @@
}
});

that.emit("update");
that.emit("selectable.update");
};

/**
Expand Down Expand Up @@ -418,7 +418,7 @@
this.dragging = true;

if (node) {
this.emit('mousedown', originalEl);
this.emit('selectable.mousedown', originalEl);
}
};

Expand Down Expand Up @@ -513,7 +513,7 @@

});

this.emit('mousemove', c);
this.emit('selectable.mousemove', c);
};

/**
Expand Down Expand Up @@ -557,7 +557,7 @@

this.container.removeChild(this.lasso);

this.emit('mouseup', selected);
this.emit('selectable.mouseup', selected);
};

/**
Expand Down Expand Up @@ -588,7 +588,7 @@
item.selected = true;
item.startselected = true;

this.emit('select', item);
this.emit('selectable.select', item);

return item;
}
Expand Down Expand Up @@ -626,7 +626,7 @@
classList.remove(el, o.selecting);
classList.remove(el, o.selected);

this.emit('unselect', item);
this.emit('selectable.unselect', item);

return item;
}
Expand All @@ -642,7 +642,7 @@
each(this.nodes, function(el, i) {
this.items[i].rect = rect(el);
}, this);
this.emit('recalculate');
this.emit('selectable.recalculate');
};

/**
Expand All @@ -663,7 +663,6 @@
for (var i = this.items.length - 1; i >= 0; i--) {
this.unselect(this.items[i]);
};
this.emit('clear');
};

/**
Expand Down Expand Up @@ -753,7 +752,7 @@

classList.add(this.container, this.config.classes.container);

this.emit('enable');
this.emit('selectable.enable');
}

return this.enabled;
Expand All @@ -777,7 +776,7 @@

classList.remove(this.container, this.config.classes.container);

this.emit('disable');
this.emit('selectable.disable');
}

return this.enabled;
Expand All @@ -800,7 +799,7 @@

this.disable();

this.emit('destroy');
this.emit('selectable.destroy');
};

return Selectable;
Expand Down
Loading

0 comments on commit 8bce9f6

Please sign in to comment.