-
You can use every part on its own via the download builder.
-
It's core MVC components are only 7k minified and gzipped.
-
You can make changes and just refresh your browser. But for production, you can build all your files into a single script.
-
FuncUnit can simulate complex user actions and run your tests in Selenium or PhantomJS.
-
It's MIT licensed, 3 years old and maintained by Jupiter Consulting and several contributors.
<html> | |
<head> | |
</head> | |
<body> | |
<ul> | |
<li><a href='#lobsterroll'>Lobster Roll</a></li> | |
<li><a href='#cookies'>Cookies</a></li> | |
<li><a href='#crab'>Crab</a></li> | |
</ul> | |
<div id='lobsterroll'> |
jQuery 1.6 brought Deferred support. They are a great feature that promise to make a lot of asynchronous functionality easier to write and manage. But, many people struggle with uses other than 'waiting for a bunch of Ajax requests to complete'. For 3.1, we identified an extremely common, but annoying, practice that becomes a one-liner with deferreds: loading data and a template and rendering the result into an element.
JavaScriptMVC 3.2 brings a lot of great features and enhancements. So many features that changes to
Neglecting to unbind event handlers is the easiest way to create memory leaks. This is extremely common in an MVC architecture as you constantly listen for model changes:
Task.bind('created', function(ev, newTask){
// add task to list
JavaScriptMVC 3.2 brings a lot of great features and enhancements. So many features that changes to
Neglecting to unbind event handlers is the easiest way to create memory leaks. This is extremely common in an MVC architecture as you constantly listen for model changes:
Task.bind('created', function(ev, newTask){
// add task to list
For DocumentJS, I'm trying to quickly get line numbers from a file given a character position. For a given source, my character position would always increase. So I wanted to call it like:
var getLine = lineNumber("BIG SOURCE\n...");
getLine(54) //->2
getLine(3453) //->55
I created 2 different ways of doing it.
Code in languages like Java or C is compiled to byte or machine code. When your app runs, it's taking instructions from code and operating on data.
Dynamic Languages, like JavaScript are rather different. Instead of a strong separation between code and data, your application is built one statement at a time. You are effectively programming your program.
For example, what happens when a script tag like <script type='text/javascript' src='myapp.js'></script>
loads the following code?
var JS = {};