Skip to content

Instantly share code, notes, and snippets.

@andersonqi
Last active January 3, 2016 15:59

Revisions

  1. andersonqi revised this gist Jan 18, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion index.html
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    <!doctype html>
    <html lang="es">
    <html lang="en">
    <head>
    <meta charset="utf-8"/>
    <title>Backbone.js</title>
  2. andersonqi renamed this gist Jan 18, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  3. andersonqi created this gist Jan 18, 2014.
    34 changes: 34 additions & 0 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    <!doctype html>
    <html lang="es">
    <head>
    <meta charset="utf-8"/>
    <title>Backbone.js</title>
    <script src="jquery-1.10.2.js"></script>
    <script src="underscore.js"></script>
    <script src="backbone.js"></script>

    <script>
    'use strict';

    var person = {
    name: 'Names'
    };

    _.extend(person,Backbone.Events);

    person.on('starting',function(){

    console.log(this.name);

    });

    person.trigger('starting');

    </script>
    </head>
    <body>



    </body>
    </html>