addyosmani / addyosmani/backbone-fundamentals

Clarification of tagName

Open
#684 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rich Text Format
Stars
9.2k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

Fundamentals -> Client-Side MVC - Backbone Style

> TodoView is defined by extending Backbone.View and is instantiated with an associated Model. In our example, the render() method uses a template to construct the HTML for the Todo item which is placed inside an **li element**. Each call to render() will replace the content of the **li element** using the current Model data.

I ran example from book and I didn't see any `

  • ` tag inside page sourse.
    Could you please explain why we need `tagName: 'li'` if there's no any `
  • ` tag.

    ![2015-10-06_001939](https://cloud.githubusercontent.com/assets/14983555/10289414/f75e416a-6bbf-11e5-86fb-c4a6f1b56fb2.png)

  • Contributor guide

    No contributing guide indexed for this repository

    Assessment

    This issue has not been assessed yet.

    Get new issues in your inbox

    A short digest of beginner-friendly GitHub issues.