Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
artch committed Aug 15, 2013
1 parent 7e3587d commit 488e251
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 129 deletions.
12 changes: 7 additions & 5 deletions build/angular-route-segment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* angular-route-segment v1.0.2
* angular-route-segment v1.0.3
* https://angular-route-segment.com
* @author Artem Chivchalov
* @license MIT License http://opensource.org/licenses/MIT
Expand Down Expand Up @@ -428,6 +428,11 @@ angular.module( 'view-segment', [ 'route-segment' ] ).directive( 'appViewSegment


function update(segment) {

if(isDefault) {
isDefault = false;
tElement.replaceWith(anchor);
}

if(!segment) {
clearContent();
Expand All @@ -438,10 +443,7 @@ angular.module( 'view-segment', [ 'route-segment' ] ).directive( 'appViewSegment
return;
}

if(isDefault) {
isDefault = false;
tElement.replaceWith(anchor);
}


var locals = angular.extend({}, segment.locals),
template = locals && locals.$template;
Expand Down
4 changes: 2 additions & 2 deletions build/angular-route-segment.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

122 changes: 0 additions & 122 deletions src/view-segment.js

This file was deleted.

0 comments on commit 488e251

Please sign in to comment.