mockup/master: Fix the test result.
Oshane Bailey <jenkins-z4DKO/[email protected]>
| Newsgroups | gmane.comp.web.zope.plone.cvs |
|---|---|
| Message-ID | <[email protected]> |
Repository: mockup Branch: refs/heads/master Date: 2017-06-12T13:56:27Z Author: Oshane Bailey (b4oshany) <[email protected]> Commit: https://github.com/plone/mockup/commit/49f2df121c431011a80dcf788eac4c4026a4dedd Fix the test result. Files changed: M mockup/js/ui/views/dropdown.js diff --git a/mockup/js/ui/views/dropdown.js b/mockup/js/ui/views/dropdown.js index 9df2b1f2..88aa53ef 100644 --- a/mockup/js/ui/views/dropdown.js +++ b/mockup/js/ui/views/dropdown.js @@ -1,8 +1,9 @@ define([ + 'jquery', 'underscore', 'mockup-ui-url/views/buttongroup', 'text!mockup-ui-url/templates/dropdown.xml', -], function(_, ButtonGroup, DropdownTemplate) { +], function($, _, ButtonGroup, DropdownTemplate) { 'use strict'; var DropdownView = ButtonGroup.extend({ @@ -31,10 +32,11 @@ define([ }, renderItems: function() { + var self = this; var $container; if (this.itemContainer !== null) { - $container = this.$(this.itemContainer, this.$el); + $container = $(this.itemContainer, this.$el); if ($container.length === 0) { throw 'Item Container element not found.'; } @@ -44,7 +46,7 @@ define([ var $item = null; _.each(this.items, function(view) { - $item = this.$("<li></li>"); + $item = $("<li></li>"); $item.append(view.render().$el.removeClass("btn")); $container.append($item); }, this); ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot