Skip to content

Commit

Permalink
Bump to v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
codef0rmerz committed Aug 11, 2013
1 parent 62420f5 commit 1559a25
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "angular-dragdrop",
"version": "1.0.2",
"version": "1.0.3",
"description": "This directive allows you to use jQuery UI's draggable and droppable plugins with AngularJS.",
"author": "https://github.com/codef0rmer/angular-dragdrop/contributors",
"license": "MIT",
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": "angular-dragdrop",
"version": "1.0.2",
"version": "1.0.3",
"description": "This directive allows you to use jQuery UI's draggable and droppable plugins with AngularJS.",
"author": "https://github.com/codef0rmer/angular-dragdrop/contributors",
"license": "MIT",
Expand Down
12 changes: 6 additions & 6 deletions src/angular-dragdrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* Implementing Drag and Drop functionality in AngularJS is easier than ever.
* Demo: http://codef0rmer.github.com/angular-dragdrop/
*
* @version 1.0.2
* @version 1.0.3
*
* (c) 2013 Amit Gharat a.k.a codef0rmer <amit.2006.it@gmail.com> - amitgharat.wordpress.com
*/
Expand Down Expand Up @@ -160,7 +160,7 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
};

this.mutateDraggable = function(scope, dropSettings, dragSettings, dragModel, dropModel, dropItem, $draggable) {
var isEmpty = $.isEmptyObject(angular.copy(dropItem)),
var isEmpty = angular.equals(angular.copy(dropItem), {}),
dragModelValue = scope.$eval(dragModel);

scope.__dropItem = dropItem;
Expand Down Expand Up @@ -226,13 +226,13 @@ var jqyoui = angular.module('ngDragDrop', []).service('ngDragDropService', ['$ti
.draggable(scope.$eval(attrs.jqyouiOptions) || {})
.draggable({
start: function(event, ui) {
zIndex = $(this).css('z-index');
$(this).css('z-index', 99999);
jqyoui.startXY = $(this).offset();
zIndex = angular.element(this).css('z-index');
angular.element(this).css('z-index', 99999);
jqyoui.startXY = angular.element(this).offset();
ngDragDropService.callEventCallback(scope, dragSettings.onStart, event, ui);
},
stop: function(event, ui) {
$(this).css('z-index', zIndex);
angular.element(this).css('z-index', zIndex);
ngDragDropService.callEventCallback(scope, dragSettings.onStop, event, ui);
},
drag: function(event, ui) {
Expand Down
4 changes: 2 additions & 2 deletions src/angular-dragdrop.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1559a25

Please sign in to comment.