Javascript style.left is empty string
<pre><code>next.onclick = function() { 
    move('left', li_items[0]);
};

var move = function(direction, el) {
    pos = el.style[direction].split('px')[0];
    pos = parseInt(pos, 10) + 10; 
    el.style[direction] = pos + 'px';
};
</code></pre>

<p>I'm using the simple code above to try and move an element. Now when I breakpoint on this, the value of <code>el.style[direction]</code> is: <code>" "</code>. So then when i try to do anything with it, it breaks. Why would this be? Isn't <code>style.left</code> supposed to return an integer?</p>
