Skip to content

Commit

Permalink
Reset ...
Browse files Browse the repository at this point in the history
  • Loading branch information
beerbohmdo committed Jan 16, 2012
1 parent 09c1f8f commit 82ef236
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions view/SSViewer.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ function resetLocalScope(){
array_splice($this->itemStack, $this->localIndex+1);
}

function obj($name, $arguments = array()) {

function obj($name){
switch ($name) {
case 'Up':
list($this->item, $this->itemIterator, $unused2, $this->upIndex, $this->currentIndex) = $this->itemStack[$this->upIndex];
Expand All @@ -63,9 +63,10 @@ function obj($name, $arguments = array()) {

default:
$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->upIndex = $this->currentIndex ? $this->currentIndex : count($this->itemStack)-1;
$this->currentIndex = count($this->itemStack);
Expand Down

0 comments on commit 82ef236

Please sign in to comment.