Browse Source

Chaning src of webview should always do a load

Previously changing src to the same value won't have any effect, which
does not follow the behavior of browsers.
Cheng Zhao 10 years ago
parent
commit
23afffa46d
1 changed files with 1 additions and 4 deletions
  1. 1 4
      atom/renderer/lib/web-view/web-view-attributes.coffee

+ 1 - 4
atom/renderer/lib/web-view/web-view-attributes.coffee

@@ -138,10 +138,7 @@ class SrcAttribute extends WebViewAttribute
   setupMutationObserver: ->
     @observer = new MutationObserver (mutations) =>
       for mutation in mutations
-        oldValue = mutation.oldValue
-        newValue = @getValue()
-        return if oldValue isnt newValue
-        @handleMutation oldValue, newValue
+        @handleMutation mutation.oldValue, @getValue()
     params =
       attributes: true,
       attributeOldValue: true,