diff Lib/IMPL/DOM/Navigator.pm @ 238:b8c724f6de36

DOM model refactoring TT view refactoring, controls are no longer derived from DOM nodes bugfixes
author sergey
date Tue, 16 Oct 2012 01:33:06 +0400
parents a4d9126edcbb
children 4ddb27ff4a0b
line wrap: on
line diff
--- a/Lib/IMPL/DOM/Navigator.pm	Mon Oct 15 17:39:12 2012 +0400
+++ b/Lib/IMPL/DOM/Navigator.pm	Tue Oct 16 01:33:06 2012 +0400
@@ -15,7 +15,7 @@
 sub CTOR {
     my ($this,$CurrentNode) = @_;
     
-    die IMPL::InvalidArgumentException("A starting node is a required paramater") unless $CurrentNode;
+    die IMPL::InvalidArgumentException->new("A starting node is a required paramater") unless $CurrentNode;
     
     $this->{$_state} = { alternatives => [ $CurrentNode ], current => 0 };
 }
@@ -23,7 +23,7 @@
 sub _initNavigator {
     my ($this,$CurrentNode) = @_;
     
-    die IMPL::InvalidArgumentException("A starting node is a required paramater") unless $CurrentNode;
+    die IMPL::InvalidArgumentException->new("A starting node is a required paramater") unless $CurrentNode;
     
     $this->{$_state} = { alternatives => [ $CurrentNode ], current => 0 };
     delete $this->{$_path};