mockup/master: Bug fixes.

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-27T18:40:55-05:00
Author: Oshane Bailey (b4oshany) <[email protected]>
Commit: https://github.com/plone/mockup/commit/b353bb193b3ada5b84198505e784719a233735be

Bug fixes.

Files changed:
M mockup/js/ui/views/anchor.js
M mockup/js/ui/views/dropdown.js
M mockup/patterns/relateditems/pattern.js

diff --git a/mockup/js/ui/views/anchor.js b/mockup/js/ui/views/anchor.js
index df83e45e..9e0f8e4a 100644
--- a/mockup/js/ui/views/anchor.js
+++ b/mockup/js/ui/views/anchor.js
@@ -30,7 +30,7 @@ define([
       this.on('render', function() {
         this.$el.attr('title', this.options.title || '');
         this.$el.attr('aria-label', this.options.title || this.options.tooltip || '');
-        _.each(this.extraClasses, function(klass){
+        _.each(this.extraClasses, function(klass) {
           this.$el.addClass(klass);
         });
       }, this);
diff --git a/mockup/js/ui/views/dropdown.js b/mockup/js/ui/views/dropdown.js
index 7a04f5d8..53cddacb 100644
--- a/mockup/js/ui/views/dropdown.js
+++ b/mockup/js/ui/views/dropdown.js
@@ -22,9 +22,9 @@ define([
 
     renderTitle: function() {
       var title = this.options.title;
-      if(this.options.title == undefined){
+      if(this.options.title === undefined) {
         title = this.title;
-        if(this.title == null){
+        if(this.title === null) {
           title = "Menu Option";
         }
       }
diff --git a/mockup/patterns/relateditems/pattern.js b/mockup/patterns/relateditems/pattern.js
index 00ff3883..f10d3145 100644
--- a/mockup/patterns/relateditems/pattern.js
+++ b/mockup/patterns/relateditems/pattern.js
@@ -98,11 +98,11 @@ define([
   'mockup-utils',
   'pat-registry',
   'translate',
-//  'text!mockup-patterns-relateditems-url/templates/breadcrumb.xml',
-//  'text!mockup-patterns-relateditems-url/templates/favorite.xml',
-//  'text!mockup-patterns-relateditems-url/templates/result.xml',
-//  'text!mockup-patterns-relateditems-url/templates/selection.xml',
-//  'text!mockup-patterns-relateditems-url/templates/toolbar.xml',
+  'text!mockup-patterns-relateditems-url/templates/breadcrumb.xml',
+  'text!mockup-patterns-relateditems-url/templates/favorite.xml',
+  'text!mockup-patterns-relateditems-url/templates/result.xml',
+  'text!mockup-patterns-relateditems-url/templates/selection.xml',
+  'text!mockup-patterns-relateditems-url/templates/toolbar.xml',
   'bootstrap-dropdown'
 ], function($, _, Base, Select2, ButtonView, utils, registry, _t,
             BreadcrumbTemplate,



------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.