This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function($) { | |
$.assert = function(condition, msg) { | |
if (!condition) { | |
$.error(msg); | |
} | |
}; | |
})(jQuery); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Class Module (No Dependencies) | |
*/ | |
define(function() { | |
// Set to true when creating New Prototype to ensure "_constructor" is not executed | |
var extending = false; | |
// Base Constructor | |
var Class = function() {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Self Initializing Backbone View</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<script src="jquery.js"></script> | |
<script src="underscore.js"></script> | |
<script src="backbone.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const domino = require('domino'); | |
const html = ` | |
<!DOCTYPE html> | |
<html> | |
<body> | |
<ul data-bind="foreach: list"> | |
<li data-bind="text: $data"></> | |
</ul> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ko = require('knockout'); | |
ko.components.register('the-beatles', {require: 'the-beatles'}); |