Skip to content

Commit

Permalink
Fix FF 23 console error
Browse files Browse the repository at this point in the history
  • Loading branch information
zackbloom committed Sep 24, 2013
1 parent bd8cac0 commit 5c982c1
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 16 deletions.
2 changes: 1 addition & 1 deletion docs/intro.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pace
====

Include [pace.js](https://raw.github.com/HubSpot/pace/v0.4.8/pace.min.js) and the
Include [pace.js](https://raw.github.com/HubSpot/pace/v0.4.9/pace.min.js) and the
[theme](http://github.hubspot.com/pace/docs/welcome/) css of your choice on your page
(as early as is possible), and you're done!

Expand Down
2 changes: 1 addition & 1 deletion docs/welcome/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ <h2>What is Pace?</h2>
<p style="text-align: left">No need to hook into any of your code, progress is detected automatically.</p>
<br/>
<h2>Download</h2>
<p><a class="button" href="https://raw.github.com/HubSpot/pace/v0.4.8/pace.min.js">Pace.js</a></p>
<p><a class="button" href="https://raw.github.com/HubSpot/pace/v0.4.9/pace.min.js">Pace.js</a></p>
<br/>
<h2>Themes</h2>
<label class="color-label" for="color-select">Enter a color:</label>
Expand Down
10 changes: 7 additions & 3 deletions pace.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -202,9 +202,13 @@ _XDomainRequest = window.XDomainRequest
_WebSocket = window.WebSocket

extendNative = (to, from) ->
for key, val of from::
if not to[key]? and typeof val isnt 'function'
to[key] = val
for key of from::
try
val = from::[key]

if not to[key]? and typeof val isnt 'function'
to[key] = val
catch e

# We should only ever instantiate one of these
class RequestIntercept extends Events
Expand Down
19 changes: 11 additions & 8 deletions pace.js

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

Loading

0 comments on commit 5c982c1

Please sign in to comment.