Permalink
Browse files

change from __proto_ to inherit to make it work on ie

  • Loading branch information...
1 parent 3d48c93 commit d206fbc37b12370a0d7d7b4bd07672e2b9704161 @lauramelos lauramelos committed Feb 21, 2013
Showing with 4 additions and 2 deletions.
  1. +2 −1 component.json
  2. +2 −1 index.js
View
@@ -8,6 +8,7 @@
],
"dependencies": {
"component/emitter": "*",
+ "component/inherit": "*",
"component/jquery": "*"
},
"scripts": [
@@ -18,4 +19,4 @@
"overlay.css"
],
"license": "MIT"
-}
+}
View
@@ -4,6 +4,7 @@
*/
var Emitter = require('emitter')
+ , inherit = require('inherit')
, o = require('jquery');
/**
@@ -50,7 +51,7 @@ function Overlay(options) {
* Inherits from `Emitter.prototype`.
*/
-Overlay.prototype.__proto__ = Emitter.prototype;
+inherit(Overlay, Emitter);
/**
* Show the overlay.

0 comments on commit d206fbc

Please sign in to comment.