This file contains hidden or 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(Spine, $){ | |
if( typeof Spine.Model.Ajax === "undefined") { throw "This plugin is really intended for use with Ajax driven models"; } | |
var Model = Spine.Model; | |
Model.extend({ | |
find: function(id) { | |
record = this.records[id]; | |
if( !record) { | |
var self = this; | |
self.ajaxPrefix = self.singletonPrefix(); | |
$.ajax({ |
This file contains hidden or 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
MigrationSet migrations = new MigrationSet(){{ | |
version(1); | |
add( new CreateTable("table1", "c", "d", "e") ); | |
version(2); | |
add( | |
new AlterTable() | |
{{ | |
table("table1"); | |
addColumn("f"); | |
}}); |
This file contains hidden or 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 reverse(arr) { | |
var start = 0, end = arr.length - 1; | |
while(start < arr){ | |
var tmp = arr[start] | |
arr[start] = arr[end] | |
arr[end] = tmp; | |
++start, --end; | |
} | |
} |
This file contains hidden or 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> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script> | |
</head> | |
<body> | |
<div data-role="page" id="page1"> | |
<div data-role="header"><h1>One</h1></div> |
This file contains hidden or 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> | |
<head> | |
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.5.2.min.js"></script> | |
<script src="http://ajax.microsoft.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script> | |
<script src="http://code.jquery.com/mobile/1.0a4.1/jquery.mobile-1.0a4.1.min.js"></script> | |
</head> | |
<body> | |
<!-- NOTE: How to replicate bug --> |
NewerOlder