mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-17 07:40:22 +00:00
fix initialization
This commit is contained in:
parent
b8ee8b8912
commit
c7719c2412
2 changed files with 2 additions and 3 deletions
|
|
@ -231,7 +231,6 @@ UrlWatcher.prototype = {
|
|||
|
||||
/////////////////////////////////////////////////
|
||||
function configureJQueryPlugins() {
|
||||
log('Angular.configureJQueryPlugins()');
|
||||
var fn = jQuery['fn'];
|
||||
fn['scope'] = function() {
|
||||
var element = this;
|
||||
|
|
@ -334,7 +333,7 @@ function wireAngular(element, config) {
|
|||
config['location']['listen'](_(binder.onUrlChange).bind(binder));
|
||||
binder.parseAnchor();
|
||||
binder.executeInit();
|
||||
scope.updateView();
|
||||
binder.updateView();
|
||||
return self;
|
||||
},
|
||||
'element':element[0],
|
||||
|
|
|
|||
|
|
@ -70,7 +70,7 @@ Binder.prototype = {
|
|||
},
|
||||
|
||||
updateAnchor: function() {
|
||||
var url = this.location.get();
|
||||
var url = this.location.get() || "";
|
||||
var anchorIndex = url.indexOf('#');
|
||||
if (anchorIndex > -1)
|
||||
url = url.substring(0, anchorIndex);
|
||||
|
|
|
|||
Loading…
Reference in a new issue