Reset ...

This commit is contained in:
Dominik Beerbohm 2012-01-17 00:57:39 +01:00
parent 09c1f8f576
commit 82ef236879

View File

@ -50,7 +50,7 @@ class SSViewer_Scope {
array_splice($this->itemStack, $this->localIndex+1); array_splice($this->itemStack, $this->localIndex+1);
} }
function obj($name, $arguments = array()) { function obj($name){
switch ($name) { switch ($name) {
case 'Up': case 'Up':
@ -64,7 +64,8 @@ class SSViewer_Scope {
default: default:
$on = $this->itemIterator ? $this->itemIterator->current() : $this->item; $on = $this->itemIterator ? $this->itemIterator->current() : $this->item;
$this->item = call_user_func_array(array($on, 'obj'), (array) $arguments); $arguments = func_get_args();
$this->item = call_user_func_array(array($on, 'obj'), $arguments);
$this->itemIterator = null; $this->itemIterator = null;
$this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1; $this->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;