Skip to content

Commit 443004a

Browse files
committed
0.4.3: bugfix [!!!]
fix a hardcode error
1 parent f89c1d0 commit 443004a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "duoshuo",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"authors": [
55
"turing <o.u.turing@gmail.com>"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-duoshuo",
3-
"version": "0.4.2",
3+
"version": "0.4.3",
44
"description": "a duoshuo SDK for angular.js, pure front-end, cross-domain request supported.",
55
"main": "dist/duoshuo.min.js",
66
"scripts": {

src/duoshuo.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
};
5252

5353
// comments renderer
54-
this.render = function(element) {
54+
this.render = function(attrs) {
5555
if (!window.DUOSHUO) throw new Error('duoshuo embed.js required!');
5656
var data = {};
5757
if (attrs.threadId) data['thread-id'] = attrs.threadId;

0 commit comments

Comments
 (0)