Skip to content

Commit

Permalink
fix class 'new this' problem
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Delcros committed Mar 10, 2016
1 parent 1664fd7 commit dccb613
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
examples/
27 changes: 27 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "storyline.js",
"version": "1.1.2",
"description": "javascript animation sequencer",
"main": "storyline.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/JordanDelcros/Storyline.js.git"
},
"keywords": [
"javascript",
"animation",
"sequencer",
"scenario",
"story",
"frame"
],
"author": "Jordan Delcros",
"license": "MIT",
"bugs": {
"url": "https://github.com/JordanDelcros/Storyline.js/issues"
},
"homepage": "https://github.com/JordanDelcros/Storyline.js#readme"
}
4 changes: 3 additions & 1 deletion storyline.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

var Storyline = function( story, duration ){

return Storyline.methods.initialize(story, duration);
return new Storyline.methods.initialize(story, duration);

};

Expand Down Expand Up @@ -108,6 +108,8 @@
}
};

Storyline.methods.initialize.prototype = Storyline.methods;

Storyline.registerEasing = function( name, easingFunction ){

easings.push([name.toLowerCase(), easingFunction]);
Expand Down

0 comments on commit dccb613

Please sign in to comment.