Skip to content

Commit

Permalink
Firefox tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
patriksimek committed Feb 16, 2017
1 parent 7dd7a0e commit 7a1cc35
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jquery",
"browser"
],
"version": "0.2.2",
"version": "0.2.3",
"main": "lib/sim.js",
"repository": {
"type": "git",
Expand Down
8 changes: 6 additions & 2 deletions src/sim.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -720,8 +720,12 @@ do (window = window ? null) ->
Object.defineProperty @, '__data',
value: Object.create null

Object.defineProperty dom, '__sim__',
value: @
try
Object.defineProperty dom, '__sim__',
value: @

catch ex
# this fail sometimes on firefox for unknown reason

Object.defineProperties SIMBase.prototype,
nodeType:
Expand Down

0 comments on commit 7a1cc35

Please sign in to comment.