Skip to content
This repository
Browse code

- fixed a typo in Drag.Move documentation (#978, thanks davidwalsh)

 - minor optimization to Fx.CSS

git-svn-id: http://svn.mootools.net/trunk@1538 4db308c1-fb21-0410-9919-de62e267375e
  • Loading branch information...
commit e8ba7b08f95576882a1305add03d87626b8ef9e3 1 parent a4f97ba
JanK authored subtleGradient committed

Showing 2 changed files with 8 additions and 12 deletions. Show diff stats Hide diff stats

  1. +6 6 Docs/Plugins/Drag.Move.md
  2. +2 6 Source/Fx/Fx.CSS.js
12 Docs/Plugins/Drag.Move.md
Source Rendered
@@ -45,16 +45,16 @@ All the base Drag options, plus:
45 45 droppables: '.droppable',
46 46
47 47 onDrop: function(element, droppable){
48   - if (!droppable) console.log(element + ' dropped on nothing');
49   - else console.log(element + ' dropped on ' + droppable);
50   - }
  48 + if (!droppable) console.log(element, ' dropped on nothing');
  49 + else console.log(element, 'dropped on', droppable);
  50 + },
51 51
52 52 onEnter: function(element, droppable){
53   - console.log(element + ' entered ' + droppable);
54   - }
  53 + console.log(element, 'entered', droppable);
  54 + },
55 55
56 56 onLeave: function(element, droppable){
57   - console.log(element + ' left ' + droppable);
  57 + console.log(element, 'left', droppable);
58 58 }
59 59
60 60 });
8 Source/Fx/Fx.CSS.js
@@ -116,12 +116,8 @@ Fx.CSS.Parsers = new Hash({
116 116 },
117 117
118 118 Number: {
119   - parse: function(value){
120   - return parseFloat(value);
121   - },
122   - compute: function(from, to, delta){
123   - return Fx.compute(from, to, delta);
124   - },
  119 + parse: parseFloat,
  120 + compute: Fx.compute,
125 121 serve: function(value, unit){
126 122 return (unit) ? value + unit : value;
127 123 }

0 comments on commit e8ba7b0

Please sign in to comment.
Something went wrong with that request. Please try again.