Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
small optimization
  • Loading branch information
kraih committed Jul 6, 2013
1 parent a49837a commit af05ad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Changes
@@ -1,5 +1,5 @@

4.18 2013-07-05
4.18 2013-07-06

4.17 2013-07-04
- Updated jQuery to version 2.0.3.
Expand Down
5 changes: 2 additions & 3 deletions lib/Mojo/Base.pm
Expand Up @@ -23,9 +23,8 @@ sub import {
elsif ($flag eq '-strict') { $flag = undef }

# Module
else {
my $file = $flag;
$file =~ s/::|'/\//g;
elsif (my $file = $flag) {
$file =~ s!::|'!/!g;
require "$file.pm" unless $flag->can('new');
}

Expand Down

0 comments on commit af05ad5

Please sign in to comment.