UI elements
* title
* body text
* 3 read-only fields with labels
* numeric entry for license count
- 5 external links
| // convert queryString to params | |
| var params = {}; | |
| window.location.search.replace( | |
| new RegExp("([^?=&]+)(=([^&]*))?", "g"), | |
| function(a, key, b, val) { | |
| var num = Number(val); | |
| if( !_.isNaN(num) && _.isNumber(num) ){ | |
| val = num; | |
| } else { | |
| if(val==="true") { |
Need to check all scenarios for display of connections menu and "move to > taskboard" menu item.
| var state = { | |
| foo: 'bam' | |
| }; | |
| function getState() { | |
| return this; | |
| } | |
| function setBoo() { | |
| this.foo = "boo"; |
| // use handlebars instead of underscore templates | |
| Marionette.TemplateCache.prototype.compileTemplate = function (rawTemplate) { | |
| return Handlebars.compile(rawTemplate); | |
| }; | |
| // workaround for a handlebars issue | |
| // compiled templates get an extra text node generated |
| Marionette.ModuleHelper = (function(Marionette, _) { | |
| "use strict"; | |
| var moduleHelper = { }; | |
| moduleHelper.templatePath = 'templates/'; | |
| moduleHelper.templateExt = ".html"; | |
| moduleHelper.templatePrefix = ""; | |
| Marionette.ModuleHelper = (function(Marionette, _) { | |
| "use strict"; | |
| var moduleHelper = { }; | |
| moduleHelper.templatePath = 'templates/'; | |
| moduleHelper.templateExt = ".html"; | |
| moduleHelper.templatePrefix = ""; |
| App.views.SomeView=Marionette.ItemView.extend({ | |
| initialize:function(){ | |
| this.fud = "-quux"; | |
| App.reqres.setHandler("foo", function(bar){ | |
| return bar + this.fud; | |
| }, this); | |
| } | |
| }); | |
| var someView = new App.views.SomeView(); |
| public class GallerySet | |
| { | |
| public GalleryLayout Layout { get; set; } | |
| public List<GalleryItem> Items { get; set; } | |
| } | |
| public class GalleryItem | |
| { | |
| public int Id { get; set; } | |
| public int ChannelId { get; set; } | |
| public GalleryItemType Type { get; set; } |
| // Preload Marionette templates as needed, before any tests are run | |
| // --------------------------- | |
| // jasmine SpecRunner.html: | |
| // [cut] | |
| <script type="text/javascript" src="lib/jasmine-1.2.0/jasmine-html.js"></script> | |
| <script type="text/javascript"> |