Show More
@@ -74,7 +74,7 b' define(["notebook/js/widget"], function(widget_manager){' | |||||
74 | var that = this; |
|
74 | var that = this; | |
75 | var item_button = $('<a href="#"/>') |
|
75 | var item_button = $('<a href="#"/>') | |
76 | .html(items[index]) |
|
76 | .html(items[index]) | |
77 | .on('click', this.handle_click); |
|
77 | .on('click', $.proxy(this.handle_click, this)); | |
78 | this.$droplist.append($('<li />').append(item_button)); |
|
78 | this.$droplist.append($('<li />').append(item_button)); | |
79 | } |
|
79 | } | |
80 |
|
80 | |||
@@ -149,7 +149,7 b' define(["notebook/js/widget"], function(widget_manager){' | |||||
149 | .addClass(this.model) |
|
149 | .addClass(this.model) | |
150 | .val(items[index]) |
|
150 | .val(items[index]) | |
151 | .prependTo($label) |
|
151 | .prependTo($label) | |
152 | .on('click', this.handle_click); |
|
152 | .on('click', $.proxy(this.handle_click, this)); | |
153 | } |
|
153 | } | |
154 |
|
154 | |||
155 | var $item_element = this.$container.find(item_query); |
|
155 | var $item_element = this.$container.find(item_query); | |
@@ -231,7 +231,7 b' define(["notebook/js/widget"], function(widget_manager){' | |||||
231 | .addClass('btn') |
|
231 | .addClass('btn') | |
232 | .html(items[index]) |
|
232 | .html(items[index]) | |
233 | .appendTo(this.$buttongroup) |
|
233 | .appendTo(this.$buttongroup) | |
234 | .on('click', this.handle_click); |
|
234 | .on('click', $.proxy(this.handle_click, this)); | |
235 | } |
|
235 | } | |
236 |
|
236 | |||
237 | var $item_element = this.$buttongroup.find(item_query); |
|
237 | var $item_element = this.$buttongroup.find(item_query); | |
@@ -311,7 +311,7 b' define(["notebook/js/widget"], function(widget_manager){' | |||||
311 | .html(items[index]) |
|
311 | .html(items[index]) | |
312 | .attr('value', items[index]) |
|
312 | .attr('value', items[index]) | |
313 | .appendTo(this.$listbox) |
|
313 | .appendTo(this.$listbox) | |
314 | .on('click', this.handle_click); |
|
314 | .on('click', $.proxy(this.handle_click, this)); | |
315 | } |
|
315 | } | |
316 | } |
|
316 | } | |
317 |
|
317 |
General Comments 0
You need to be logged in to leave comments.
Login now